Search Issue Tracker
Fixed
Fixed in 2.8.2
Votes
0
Found in [Package]
2.6.1
2.8.0
Issue ID
SPLB-355
Regression
No
Error “NullReferenceException: Object reference not set to an instance of an object“ is present when pressing CTRL + Z after "Bake Instances" in the Spline Instantiate component
Reproduction steps:
1. Open the attached project "ReproProj"
2. Open the “/Assets/bake_instance_undo_bug1.unity” Scene
3. In Hierarchy, select the “Spline” GameObject
4. In Inspector, under “Spline Instantiate” Component, press the “Bake Instance“ Button
5. Press CTRL + Z
6. Observe Console
Expected result: No Errors exist
Actual result: Error “NullReferenceException: Object reference not set to an instance of an object“ is present
Reproducible with: 2.6.1 (2022.3.51f1), 2.8.0 (2022.3.61f1, 6000.0.47f1, 6000.1.0b15, 6000.2.0a9)
Testing environment: Windows 10 Enterprise 21H2
Not reproducible on: No other environment tested
Notes:
- When the NullReferenceException occurs, the component becomes invisible and stops functioning
- Another issue is that after opening “/Assets/bake_instance_undo_bug2.unity”, selecting “Spline” GameObject and under “Spline Instantiate” Component, selecting Drag_to_drop Object in “Items To Instantiate” field, a NullReferenceException occurs
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
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
- Group Node name text is way smaller in the renaming state than the actual display size
Resolution Note (fix version 2.8.2):
The cause for this bug was isolated and fixed.