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
- ACES Tonemapping causes banding artifacts and negative values in ColorGradingLUT when HDR is enabled and "High Dynamic Range" Grading mode is selected while Android Platform is used
- Android Player freezes when an Audio Source is playing and an incoming call is picked up and then hung up and the Audio Source is started again
- Green success icon is poorly visible in the light Unity theme
- Incorrect input into the Input Field when using Microsoft IME Japanese
- Multiplayer role "ClientAndServer" is displayed without the spaces in the "Play Mode Scenarios" window
Resolution Note (fix version 2020.1):
Fixed in: 2020.1.4f1.4412