Search Issue Tracker
Duplicate
Votes
0
Found in
2019.3
2020.1
2020.1.0a22
Issue ID
1217221
Regression
No
Instance of a class with no data is not serialized correctly when it belongs to an array/list
How to reproduce:
1. Open attached project "770544_SerializeReferenceRepro_2020.1.0a22.zip" and scene "Main"
2. Enter Play mode and observe the Null Reference Exception
3. In Hierarchy window, select "Main Camera"
4. In Project window, right-click -> Create -> "Create ScriptableObject ..."
5. Drag and drop newly created "Scriptable Object 1" to "Load Empty Interface" -> "Empty Interface Instance"
6. Enter Play mode (no errors are thrown, expected)
7. Save current scene
8. Create a new Scene, enter it and go back to scene "Main"
9. Enter Play mode
Expected result: no Errors are thrown
Actual result: Null Reference Exception is thrown
Reproducible with: 2019.3.1f1, 2020.1.0a22
Could not test with: 2019.2 and older (SerializeReference attribute was not yet released)
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
This is a duplicate of issue #1183547