Unity Issue Tracker - NullReferenceExceptions are being thrown when saving a ScriptableObject with an array of a type with a CustomPropertyDrawer that uses TrackPropertyValue
Closed
UUM-58532
NullReferenceExceptions are being thrown when saving a ScriptableObject with an array of a type with a CustomPropertyDrawer that uses TrackPropertyValue
Unity: UI Toolkit Authoring Framework
Won't Fix
6.0.X
2023.3.X
2023.2.X
2022.3.X
Could not reproduce. Tested against 6000.0.0b12 and 2022.3.19f1.
I suspect it was fixed by the changes to TrackProperty, perhaps when we introduced the PendingCallbacks system?
Reproduction steps:
1. Open the attached “Repro“ project
2. Select the “Assets/Test.asset“ Scriptable Object
3. Edit any field and press Ctrl + S
4. Observe the Console
Expected result: No errors are present
Actual result: Single NullReferenceExceptions are being thrown/spammed
Reproducible with: 2022.3.15f1, 2023.2.4f1, 2023.3.0a18
Couldn’t test with: 2021.3.33f1 (Unable to downgrade, due to missing features/or them behaving differently)
Reproducible on: M1 MacOS 14.0
Not reproducible on: No other environment tested
Prioritise and Follow this issue
Have a workaround or additional info about this issue?