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
- [WebGL][Android] Corrupt header when connecting via IP
- Editor and Android Player hangs/freezes when repeatedly Loading/Unloading AssetBundle in Vulkan
- Selecting a Material for HDRP Decal Projector in the Inspector window spams errors in the Console
- Expanded Asset Preview Box moves/hides when creating new Asset in Project window
- Player crashes on Meta Quest with "/apex/com.android/runtime/lib64/bionic/libc.so" when using OpenXR Plugin in a specific project
This is a duplicate of issue #1183547