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
- Incorrect rotations on bones when importing FBX animations with a Humanoid Rig
- Render Graph Viewer “Pass List” section is flickering when resizing vertically and the Render Graph Viewer window is docked
- Render Graph Viewer Capture button plays the click animation but does not do anything when the Capture button is pressed with the “Enter” key on the keyboard
- UI Builder Scrollview is unable to scroll all the way down when the window is downsized vertically
- Celestial bodies order remains unchanged when the Distance setting is modified
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