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
- Standalone profiler process is hidden in macOS dock
- Shader warnings are being thrown after building Mixed Reality Template
- Error is thrown when entering play mode with build profiles docked and standalone profiler open
- The Player hangs when activating another maximized application
- [XR] Input is not registered and headset view is headlocked after entering Play Mode with Meta XR SDK on 6000.0.0b16 and higher
This is a duplicate of issue #1183547