Search Issue Tracker
Fixed
Fixed in 2021.3.9f1, 2022.1.16f1, 2022.2.0b8, 2023.1.0a6
Votes
0
Found in
2021.3.4f1
Issue ID
UUM-5771
Regression
No
[IL2CPP] New() operator causes a NullReferenceException error in a build
Reproduction steps:
1. Open the attached project “ReproducibleExample (2).zip”
2. Go to Build Settings and enable Development Build
3. Set Scripting Backend to IL2CPP
4. Build And Run the project
Expected result: The build doesn’t have any errors
Actual result: The build has an error - “NullReferenceException: Object reference not set to an instance of an object.
at ProjectRunner.ShowInfo () \[0x00000] in <00000000000000000000000000000000>:0”
Reproducible with: 2021.3.4f1
Could not test with: 2019.4.40f1, 2020.3.36f1, 2021.1.28f1, 2022.1.5f1, 2022.2.0a17 (namespace error)
Reproducible on: macOS 12.4
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
- Buttons in the Overlay Menu in the Scene View are all gray even if they're activated when Game View is maximized and minimized
- NullReferenceException is thrown when baking Adaptive Probe Volume for a Terrain with Non-GI Contributing Tree Prototypes and multiple APV objects with different LayerMasks are present on the scene
- Hands are not recognized when using Hololens 2
- "OnTriggerExit2D" is called before "OnTriggerEnter2D" when object is destroyed immediately
- Editor crashes on PrepareSpriteTilingData when exiting Play mode
Resolution Note (fix version 2022.2.0b8):
Fixed in: 2022.2.0b8
Resolution Note (fix version 2021.3.9f1):
Fixed in: 2021.3.9f1