Search Issue Tracker

Active

Under Consideration for 2022.3.X

Votes

0

Found in

2022.3.16f1

2023.2.4f1

2023.3.0b1

6000.0.0b11

Issue ID

UUM-59576

Regression

Yes

NullReferenceException is thrown when pressing the + button

--

-

Reproduction steps:
1. Open the attached “Repro“ project
2. Select the “Assets/ScriptableObjects/RedButtonSettings.asset“ Scriptable Object
3. In the Inspector window click the + button
4. Obersve the Console window

Expected result: No error is thrown
Actual result: “NullReferenceException: SerializedObject of SerializedProperty has been Disposed” is thrown

Reproducible with: 2022.3.11f1, 2022.3.16f1, 2023.2.4f1, 2023.3.0b1
Not reproducible with: 2021.3.33f1, 2022.3.10f1

Reproducible on: Windows 11
Not reproducible on: No other environment tested

Error:
NullReferenceException: SerializedObject of SerializedProperty has been Disposed.
UnityEditor.SerializedProperty.get_arraySize () (at <9920ff0c944845d7b9f9a61ef1478edc>:0)
binrev.ui.UIStateVisualizerSOEditor.OnInspectorGUI () (at Assets/Editor/UIStateVisualizerSOEditor.cs:140)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass72_0.<CreateInspectorElementUsingIMGUI>b__0 () (at <9920ff0c944845d7b9f9a61ef1478edc>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.