Search Issue Tracker
Fixed
Fixed in 2.5.2
Votes
0
Found in [Package]
2.5.1
Issue ID
XRCB-19
Regression
No
"NullReferenceException: Object reference not set to an instance of an object" error thrown after creating a Mixed Reality project
Steps to reproduce:
- Create a new project using Mixed Reality template
- Click Fix in the Project Validation Window
- Observe the Console
Actual results: "InvalidOperationException: Cannot modify VisualElement hierarchy during layout calculation" and "NullReferenceException: Object reference not set to an instance of an object" errors are thrown
Expected results: No errors or warnings are thrown
Reproducible with versions: 6000.2.0a4
Not reproducible with versions: 6000.0.39f1, 6000.1.0b7, 6000.2.0a3
Can't test with versions: 2021.3.49f1 (No Mixed Reality template present)
Tested on (OS): macOS Sequoia 15.3 (M1), macOS Sequoia 15.2 (Intel)
Notes:
- Issue is reproducible on macOS Sequoia 15.2 (Intel) only after "Fix All" button is pressed on Project Validation window
- Full errors:
{code:java}
NullReferenceException: Object reference not set to an instance of an object Unity.XR.CoreUtils.Editor.ProjectValidationSettingsProvider.OnInspectorUpdate () (at ./Library/PackageCache/com.unity.xr.core-utils@c0df0dd5bced/Editor/ProjectValidation/ProjectValidationSettingsProvider.cs:45) UnityEditor.SettingsWindow.OnInspectorUpdate () (at /Users/bokken/build/output/unity/unity/Editor/Mono/Settings/SettingsWindow.cs:185) UnityEditor.HostView.OnInspectorUpdate () (at /Users/bokken/build/output/unity/unity/Editor/Mono/HostView.cs:452)
{code}
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
- Active quality level set on a new Universal 2D project is not the default quality level when creating a new project
- Inspector Open button does nothing when navigating to a different folder with a locked asset
- Pre-generated XML serializers fail to deserialize types that use polymorphism when the Player is built with the IL2CPP scripting backend
- Editor crashes with error "Failed to present D3D11 swapchain due to device reset/removed" and Player freezes when rendering a particle system while using modified URP package on DX11
- Crash on Scripting::LogException when async HTTP callback executes after scripting domain teardown
Resolution Note (fix version 2.5.2):
Fixed an error in the `ProjectValidationSettingsProvider` where the `m_ValidationDrawer` would clear during an asset refresh and cause a `NullReferenceException` when refreshing the Project Validation issue list.