Search Issue Tracker
Fixed in 2020.2.X
Fixed in 2020.1.X
Votes
0
Found in
2020.2.0a20
Issue ID
1267028
Regression
Yes
[Editor] NullReferenceException thrown on changing the "Asset Serialization Mode" from Editor Settings
On changing the "Asset Serialization Mode" from Editor Settings under Project Settings when preset of "Editor Settings" is created and focused in the Inspector then it causes Editor to throw NullReferenceException, Refer attached video.
Steps to repro:
1. Create a new project
2. Edit > Project Settings > Editor
3. Create preset of Editor Settings
4. Project window > EditorSetttings preset > Select
5. Project Settings > Editor > Asset Serialization > Change Mode
6. The open scene(s) have been modified externally > Reload
Actual Result:
NullReferenceException is thrown on changing "Asset Serialization Mode" and Reloading the scene from pop up when Editor Settings preset is focused in the Inspector
Expected Result:
Asset Serialization Mode get selected and the scene is reloaded gracefully
Occurring on:
2020.2.0a20
Working fine:
2020.2.0a19, 2020.1.1f1
Environment:
Windows10 and macOS 10.14
Stack Trace:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.UIElements.EditorElement.Reinit (System.Int32 editorIndex) (at <4a010c27075a4c2daedf3ee971af3236>:0)
UnityEditor.PropertyEditor.ProcessEditorElementsToRebuild (UnityEditor.Editor[] editors) (at <70c42c992fa442f8aa9edcf3e9f7b431>:0)
UnityEditor.PropertyEditor.DrawEditors (UnityEditor.Editor[] editors) (at <70c42c992fa442f8aa9edcf3e9f7b431>:0)
UnityEditor.PropertyEditor.RebuildContentsContainers () (at <70c42c992fa442f8aa9edcf3e9f7b431>:0)
UnityEditor.InspectorWindow.RedrawFromNative () (at <70c42c992fa442f8aa9edcf3e9f7b431>:0)
UnityEditor.GenericMenu:CatchMenu(Object, String[], Int32)
Comments (4)
-
pekdemir
May 31, 2021 09:51
Resetting the Layout to Default has also worked for me. Here's a small Hint though:
If you don't want to lose your custom Layout, save it using "Window => Layouts => Save Layout to File" before you do the Layout Reset. At least in my Case I could re-import the saved Layout afterwards and the annoying Exception Error was gone. Good Luck! :-) -
gillemp
May 09, 2021 10:55
It was present in 2020.3.2f1 - Resting the layout solved it
-
FeistyRodent
Apr 26, 2021 22:39
Was also seeing this in 2020.3.2.
Reset my editor layout to Default and it seems to have resolved it
-
earthcrosser
Apr 16, 2021 18:47
I have Unity version 2020.3.2f1 Personal, I think this bug could be back.
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.PropertyEditor.DrawEditors (UnityEditor.Editor[] editors) (at <d6a6a4b561b9431dbfe2c61f7bf0d405>:0)
UnityEditor.PropertyEditor.RebuildContentsContainers () (at <d6a6a4b561b9431dbfe2c61f7bf0d405>:0)
UnityEditor.InspectorWindow.RedrawFromNative () (at <d6a6a4b561b9431dbfe2c61f7bf0d405>:0)
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
- Crash on "StoredGraphicsBuffer::GetGfxBufferID" when activating VFX via extention of Activation Track in Timeline window
- [Linux] Stack trace file path and line number information is missing when IL2CPP Stacktrace Information is set to "Method Name, File Name, and Line Number"
- Warnings due to obsolete Object.FindObjectsByType<T> usage and [SerializeReference] are logged when opening the Netcode for Entities setup scene
- Non-standard pointers cannot change Inspector values with arrow controls when crossing Inspector area
- No longer able to change the Toggle or Slider GameObjects' Target Graphic value and a NullReferenceException is thrown when the Target Graphic value is set to None at any point
Resolution Note (fix version 2020.1):
Fixed in: 2020.1.4f1.4412