Search Issue Tracker

Active

Under Consideration for 6000.0.X, 6000.2.X, 6000.3.X, 6000.4.X

Votes

0

Found in

6000.0.58f1

6000.2.6f1

6000.3.0b2

6000.4.0a1

Issue ID

UUM-119558

Regression

No

Opening Terrain Prefab in Prefab Editing Mode throws "NullReferenceException" error

-

Steps to reproduce:
1. Create new Unity project
2. In Hierarchy create Terrain GO
3. Drag Terrain GO to Project window to create Prefab
4. In Hierarchy press on ">" to open Terrain Prefab in Prefab Editing Mode
5. Observe the Console window

Actual results: "NullReferenceException: Object reference not set to an instance of an object" error is thrown in the Console window
Expected results: No errors should be thrown in the Console window

Reproducible with versions: 6000.0.58f1, 6000.2.6f1, 6000.3.0b2, 6000.4.0a1

Tested on (OS): Windows 11

Full error:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.TerrainInspector.Raycast (UnityEngine.Vector2& uv, UnityEngine.Vector3& pos) (at <97a8860f371149d8a981217f223d809c>:0)
UnityEditor.TerrainInspector.OnGetFrameBounds () (at <97a8860f371149d8a981217f223d809c>:0)
System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <59bd7c40c082431db25e1e728ab62789>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <59bd7c40c082431db25e1e728ab62789>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <59bd7c40c082431db25e1e728ab62789>:0)
UnityEditor.SceneView.FrameSelected (System.Boolean lockView, System.Boolean instant) (at <8081513dc2364383b8289d30d2169b2e>:0)
UnityEditor.SceneManagement.PrefabStage.DelayedFraming () (at <8081513dc2364383b8289d30d2169b2e>:0)
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at <8081513dc2364383b8289d30d2169b2e>:0)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.