Search Issue Tracker
Fixed in 5.4.0
Votes
0
Found in
Issue ID
742247
Regression
Yes
[Editor] NullReferenceException is shown after double-clicking on Terrain gameobject with deleted terrain asset file
Steps to reproduce:
1. Open Unity;
2. Create new project and scene;
3. Add Terrain GameObject (GameObject -> 3DObject ->Terrain);
4. Go to Assets folder (Project tab -> Assets);
5. Delete terrain asset file (by default it's named as "New Terrain") by right-clicking on it and pressing "Delete" button;
6. Double click on Terrain gameobject in the Hierarchy view.
Actual result:
Error:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.TerrainInspector.OnGetFrameBounds () (at /Users/builduser/buildslave/unity/build/Editor/Mono/TerrainEditor/TerrainInspector.cs:1530)
is shown in the console. See attached gif video and actual.png screenshot for full error.
Expected result:
- NullReference error should not be shown;
- In this case, it would be reasonable to show a warning message that Terrain has no asset file attached to it every time user clicks on it.
Regression from Unity 5.0.
Notes:
- Reproduces in 5.3.0b5, 5.2.2p2;
- Doesn't reproduce in 4.6.8p3.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- Crash with “Fatal Error! The file ‘MemoryStream’ is corrupted!” when adding a large number in Font Character Rects Size field
Add comment