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
- Certain textures are incorrectly marked in the render pass list when observed through Render Graph Viewer
- "Assertion failed on expression" error occurs when multiple Animation Components are instantiated after changing the Culling Type
- MacOS persistentDataPath uses old path when built compared to Editor Play mode
- Crash on RaiseException when entering Play Mode in a specific project
- Debug Console does not reappear when disabling and re-enabling Debug.developerConsoleEnabled
This is a duplicate of issue #1183547