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:

  1. Create a 3D project
  2. Add any 3D game object for example "Cube"
  3. Go to the "Window" menu and select "Search" ->"New Window"
  4. In the "Search" window click the "Inspector" button and verify that the "Inspector" section becomes visible
  5. Type "Cube" into the search input section and click "Enter"
  6. Observe results in the "All" tab, find "Cube" and select it
  7. Verify, that the "Inspector" section displays its data
  8. Click the save (diskette) button displayed in the "Search" window 
  9. Select the "Save Project" option
  10. Leave the default proposed name and click "Save"
  11. 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)

 

  1. 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

  2. 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

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.