Search Issue Tracker

Fixed

Fixed in 6000.5.0b2, 6000.6.0a2

Votes

0

Found in

6000.5.0a8

6000.6.0a1

Issue ID

UUM-136685

Regression

Yes

NullReferenceException is thrown if the Search window is presenting results during a domain reload

Search

-

Steps to reproduce:

  1. Open the attached project
  2. Observe that an open Search window is presenting results for the project's assets
  3. In the project window, create a new Mono Behaviour script
  4. Observe that search results are updated, and no errors are thrown
  5. Delete the created Mono Behaviour script
  6. Observe the console window

Actual results: NullReferenceException is thrown

Expected results: No errors or warnings are thrown

Reproducible with versions: 6000.5.0a7, 6000.5.0a8

Not reproducible with versions: 2022.3.74f1, 6000.0.70f1, 6000.3.11f1, 6000.4.0b12, 6000.5.0a6

Tested on (OS): Windows 11, macOS 26.3.1

Notes:

  • Also reproducible by adding/removing any package using a Package Manager

Full error message:
{quote}NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Search.SearchWindow.Update () (at /Users/bokken/build/output/unity/unity/Modules/QuickSearch/Editor/UITK/SearchWindow.cs:167)
UnityEditor.HostView.SendUpdate () (at /Users/bokken/build/output/unity/unity/Editor/Mono/HostView.cs:712)
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at /Users/bokken/build/output/unity/unity/Editor/Mono/EditorApplication.cs:403)
{quote}

  1. Resolution Note:

    Fixed in 6000.6.0a2

  2. Resolution Note (fix version 6000.6.0a2):

    Fixed in 6000.6.0a2

  3. Resolution Note (fix version 6000.5.0b2):

    Fixed in 6000.5.0b2

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.