Unity Issue Tracker - "NullReferenceException" error is thrown when entering the Play Mode with >=2 open Inspectors and Canvas GameObject is selected
Fixed
UUM-1510
"NullReferenceException" error is thrown when entering the Play Mode with >=2 open Inspectors and Canvas GameObject is selected
Unity: uGUI
Fixed
2021.3.X
2020.3.X
Won't Fix
2022.1.X
2022.1 has reached end of life so the issue will be fixed in a newer version.
The warning is not shown anymore. The problem is already resolved in newer versions thanks to better implementation of EditorActivityTracker lifecycle.
The warning is not shown anymore. The problem is already resolved in newer versions thanks to better implementation of EditorActivityTracker lifecycle.
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
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)
Prioritise and Follow this issue
Have a workaround or additional info about this issue?