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
- Shader Graph Asset icon is not shown on creation unless you confirm the name
- APV Sky occlusion doesn't consider the terrain
- [iOS] "EXC_BAD_ACCESS" Player crash when Script Debugging is enabled
- Cursor skips input fields when tabbing between two sets of input fields
- "Shader error redefinition of 'Varyings'" error appears when selecting the shader
This is a duplicate of issue #1183547