Search Issue Tracker


Fixed in 2023.1.0b18, 2023.2.0a15



Found in



Issue ID




"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).



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)


  1. Resolution Note (fix version 2023.2.0a15):

    Verified with:
    Revision: trunk e4d2a7e41f40
    Built: Tue, 09 May 2023 02:23:23 GMT

  2. Resolution Note (fix version 2023.1.0b18):

    Verified with:
    Revision: 2023.1/staging 5823d77fe92a
    Built: Wed, 17 May 2023 02:16:47 GMT

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.