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
- [Silicon] Crash with multiple StackTraces when entering Play Mode in a project with corrupted FBX files
- Index Out Of Range exception when trying to use Rendering Layer Override in Probe Adjustment Volume without a mask defined in lighting settings
- [Android] [Vulkan] [WebCamTexture] "WebCamTexture.Play" crashes the application when the camera is started
- Huge performance overheads appear when there is a large amount of bindings in the UI Toolkit
- Visual Effects Graph Blackboard can't be scrolled horizontally
Resolution Note (fix version 2019.4):
Fixed in: 2019.4.36f1