Search Issue Tracker
Fixed
Fixed in 2023.1.0b18, 2023.2.0a15
Votes
0
Found in
2023.1.0b10
2023.2.0a9
Issue ID
UUM-31865
Regression
Yes
"NullReferenceException: Object reference not set to an instance of an object" error is displayed in the console after actions in the "Search" window
Steps to reproduce:
# Create a 3D project
# Add any 3D game object for example "Cube"
# Go to the "Window" menu and select "Search" ->"New Window"
# In the "Search" window click the "Inspector" button and verify that the "Inspector" section becomes visible
# Type "Cube" into the search input section and click "Enter"
# Observe results in the "All" tab, find "Cube" and select it
# Verify, that the "Inspector" section displays its data
# Click the save (diskette) button displayed in the "Search" window
# Select the "Save Project" option
# Leave the default proposed name and click "Save"
# Observe "Console", it displays an error.
Expected result: The query should be saved with no errors in the console.
Actual result: The query is saved, but the console displays an error.
Reproducible with: 2023.1.0a15, 2023.1.0b10, 2023.2.0a9.
Not reproducible with: 2023.1.0a14, 2022.2.13f1, 2021.3.22f1, 2020.3.46f1 (this stream has no this window).
Error:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Search.SearchDetailView.RefreshActions (UnityEditor.Search.SearchContext context) (at /Users/bokken/build/output/unity/unity/Modules/QuickSearch/Editor/UITK/SearchDetailView.cs:261)
UnityEditor.Search.SearchDetailView.<Refresh>b__35_0 () (at /Users/bokken/build/output/unity/unity/Modules/QuickSearch/Editor/UITK/SearchDetailView.cs:224)
UnityEngine.UIElements.VisualElement+SimpleScheduledItem.PerformTimerUpdate (UnityEngine.UIElements.TimerState state) (at /Users/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/VisualElementScheduler.cs:346)
UnityEngine.UIElements.TimerEventScheduler.UpdateScheduledEvents () (at /Users/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/Scheduler.cs:362)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.UpdateSchedulers () (at /Users/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/UIElementsUtility.cs:273)
UnityEngine.UIElements.UIEventRegistration.UpdateSchedulers () (at /Users/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/UIElementsUtility.cs:105)
UnityEditor.RetainedMode.UpdateSchedulers () (at /Users/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Editor/RetainedMode.cs:55)
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
- [Android][iOS] The keyboard closes and re-opens when consecutive input fields are selected
- Complex Sub Graph connected to a Voronoi node is ignored when the shader gets applied as a Material
- Compute Shader property not set error when entering play mode with path tracing and PBR sky
- "WebGL Publish" detects WebGL module and allows building when it is installed without restarting the project
- Editor is non-responsive and flickers when multiple Water System instances are enabled
Resolution Note (fix version 2023.2.0a15):
Verified with:
2023.2.0a15.2253.2683
Revision: trunk e4d2a7e41f40
Built: Tue, 09 May 2023 02:23:23 GMT
Resolution Note (fix version 2023.1.0b18):
Verified with:
2023.1.0b18.3067.5283
Revision: 2023.1/staging 5823d77fe92a
Built: Wed, 17 May 2023 02:16:47 GMT