Search Issue Tracker
Fixed in 2019.4.X
Votes
3
Found in
2019.4.19f1
2019.4.32f1
Issue ID
1381342
Regression
Yes
NullReferenceException error is thrown when a Renderer added to a LOD Group is deleted
How to reproduce:
1. Open attached project "lodRepro"
2. Open the scene "SampleScene" (Assets/Scenes/SampleScene.unity)
3. In the Hierarchy window, delete the GameObject "Cube (1)"
4. Select the GameObject "LOD Group"
5. Inspect the Console window (Window > General > Console)
Expected result: No errors are seen in the Console
Actual result: A NullReferenceException error is seen in the Console
Reproducible with: 2019.4.19f1, 2019.4.33f1
Not reproducible with: 2019.4.18f1, 2020.1.0a1, 2020.3.24f1, 2021.2.4f1, 2022.1.0a16
Error:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.SpeedTreeMaterialFixer+<EnumerateMeshRenderers>d__2.MoveNext () (at /Users/bokken/buildslave/unity/build/Editor/Mono/SpeedTreeMaterialFixer.cs:27)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (fix version 2019.4):
Fixed in: 2019.4.36f1