Search Issue Tracker

Duplicate

Votes

2

Found in

2023.2.7f1

2023.3.0b4

6000.0.0b11

Issue ID

UUM-61557

Regression

Yes

ScriptableObjects with inner serialized classes containing arrays throw exceptions when changes are made after saving

--

-

How to reproduce:
1. Open the attached “scriptableobject_issue” project
2. Open the “SampleScene”
3. In the Assets window, select the “testSO” asset
4. In the Inspector, add an element to the “Some Objects” list by selecting the “+” button
5. Save the changes without leaving the Inspector window (CTRL+S)
6. Try adding or removing elements from the “Some Objects” list using the “+” and “-” buttons (or manually typing a number in the input field)
7. Observe the Console

Expected result: The changes are saved, and no exceptions are thrown in the Console
Actual result: NullReferenceExceptions are thrown when the “+” and “-” buttons are clicked. List elements disappear until the Inspector window is refreshed

Reproducible in: 2023.2.0b13, 2023.2.7f1, 2023.3.0a8, 2023.3.0b4
Not reproducible in: 2021.3.34f1, 2022.3.18f1, 2023.2.0b12, 2023.3.0a7

Reproducible on: Windows 10, Windows 11
Not reproducible on: No other environments tested

Notes:

* The first affected version’s behavior differs slightly from the latest versions, but the end result is largely the same
* See attachments for the different exceptions thrown

  1. Resolution Note:

    This bug was fixed by https://github.cds.internal.unity3d.com/unity/unity/pull/43730

    Duplicate of another internal issue: UUM-56957: List data shows wrong values

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.