Search Issue Tracker
Fixed in 2020.3.47f1
Fixed in 2020.3.X, 2021.3.X, 2022.1.X
Votes
2
Found in
2020.3.33f1
2021.3.5f1
2022.1.6f1
Issue ID
UUM-1510
Regression
Yes
"NullReferenceException" error is thrown when entering the Play Mode with >=2 open Inspectors and Canvas GameObject is selected
How to reproduce:
1. Create a new Unity project
2. In the Scene add "Canvas" (GameObject->UI->Canvas)
3. Open the Inspector (Window->General->Inspector)
4. Open second Inspector (Right-click on the Inspector's tab->Add Tab->Inspector)
5. In the Hierarchy select the "Canvas" GameObejct
6. Enter the Play Mode
Expected results: No errors are thrown
Actual results: "NullReferenceException" error is thrown
Reproducible with: 2020.3.2f1, 2020.3.33f1, 2021.2.19f1, 2022.1.0b15
Not reproducible with: 2019.4.37f1, 2020.3.1f1, 2022.2.0b9
Full error:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.PropertyEditor.DrawEditors (UnityEditor.Editor\[] editors) (at <780782bc035845f9909cebbd4c983ae3>:0)
UnityEditor.PropertyEditor.RebuildContentsContainers () (at <780782bc035845f9909cebbd4c983ae3>:0)
UnityEditor.InspectorWindow.RedrawFromNative () (at <780782bc035845f9909cebbd4c983ae3>:0)
Comments (1)
-
Neon_Specter
May 03, 2022 20:33
This will happen for me when anything with a canvas renderer is selected, not just a Canvas object.
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
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Resolution Note (fix version 2021.3):
The warning is not shown anymore. The problem is already resolved in newer versions thanks to better implementation of EditorActivityTracker lifecycle.
Resolution Note (fix version 2020.3):
The warning is not shown anymore. The problem is already resolved in newer versions thanks to better implementation of EditorActivityTracker lifecycle.