Search Issue Tracker
Fixed in 2020.2.X
Fixed in 2020.1.X
Votes
0
Found in
2018.1.0a1
2018.4
2019.1
2019.2
2019.3
2020.1
2020.1.0a23
Issue ID
1218689
Regression
No
[Preset] NullReferenceException is thrown continuously on deleting Levels of Quality settings from its preset
On deleting Levels(Very High, High etc..) of Quality Settings from its preset causes editor to throw NullReferenceException continuously also not able to delete other Levels, refer attached video.
Steps to repro:
1. Create a new project.
2. Edit > Project Settings > Quality
3. Create preset of Quality settings
4. Project > QualitySettings > Inspector
5. Delete Levels (Very High, High, Medium, etc..)
Actual Result:
NullReferenceException thrown continuously on deleting the Levels
Expected Result:
Levels are deleted gracefully without any exception thrown
Note: Preset functionality introduced in 2018.1
Tested with Unity Version:
2020.1.0a23, 2019.3.1f1, 2019.2.13f1, 2019.1.11f1, 2018.4.13f1, 2018.1.0f2, 2018.1.0a1
Environment:
Windows 10 & macOS 10.14.
Stack trace:
Retrieving array element that was out of bounds
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.QualitySettingsEditor.OnInspectorGUI () (at <14e2d4b2ee9f48738146210decad60c4>:0)
UnityEditor.Presets.PresetEditor.DrawInternalInspector () (at <14e2d4b2ee9f48738146210decad60c4>:0)
UnityEditor.Presets.PresetEditor.DrawPresetData () (at <14e2d4b2ee9f48738146210decad60c4>:0)
UnityEditor.Presets.PresetEditor.OnInspectorGUI () (at <14e2d4b2ee9f48738146210decad60c4>:0)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass58_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <14e2d4b2ee9f48738146210decad60c4>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- TreeView Child display toggle styling becomes reversed when clicking and dragging it
- Null is returned when using FocusOutEvent.relatedTarget
- Unity_BaseInstanceID is always zero when rendering multiple meshes and instancing with the same buffer
- UI Document button's text does not resize relatively when size in percentage (%) is used
- Event.current.mousePosition has an offset of 1px along the y-axis in WebGL build when the mouse button is released
Add comment