Search Issue Tracker

Fixed in 2021.1.X

Votes

0

Found in

2020.2.0b7

2021.1.0a1

Issue ID

1283926

Regression

No

[Quick Search] NullReferenceException is thrown on Creating Asset, Prefab & Scene in Search Index Manager

Quick Search

-

On Creating Asset, Prefab & Scene in Search Index Manager from Global Search window causes NullReferenceException in the console.

Steps to repro:
1. Create a New Project
2. Click on search Icon besides collab Icon
3. Enter "Index Manager" in the Global Search window and Select
4. Serch Index Manager > Add(+) > Scenes > Create

Actual Result:
NullReferenceException is thrown in Console

Expected Result:
No error in the console

Reproducible in:
2021.1.0a1

Environment:
Occurring on Windows 10 & macOS 10.15.

Stack trace:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Search.IndexManager.UpdateBasicPreview (UnityEngine.UIElements.VisualElement element, System.Int32 index) (at /Users/bokken/buildslave/unity/build/Modules/QuickSearch/Editor/Indexing/IndexManager.cs:957)
UnityEditor.Search.IndexManager.BindIndexItem (UnityEngine.UIElements.VisualElement element, System.Int32 index) (at /Users/bokken/buildslave/unity/build/Modules/QuickSearch/Editor/Indexing/IndexManager.cs:923)
UnityEngine.UIElements.ListView.Setup (UnityEngine.UIElements.ListView+RecycledItem recycledItem, System.Int32 newIndex) (at /Users/bokken/buildslave/unity/build/External/MirroredPackageSources/com.unity.ui/Core/Controls/ListView.cs:1272)
UnityEngine.UIElements.ListView.ResizeHeight (System.Single height) (at /Users/bokken/buildslave/unity/build/External/MirroredPackageSources/com.unity.ui/Core/Controls/ListView.cs:1227)
UnityEngine.UIElements.ListView.Refresh () (at /Users/bokken/buildslave/unity/build/External/MirroredPackageSources/com.unity.ui/Core/Controls/ListView.cs:1170)
UnityEditor.Search.IndexManager.OnIndexLoaded (UnityEditor.Search.SearchDatabase sb) (at /Users/bokken/buildslave/unity/build/Modules/QuickSearch/Editor/Indexing/IndexManager.cs:382)
UnityEditor.Search.SearchDatabase.Setup () (at /Users/bokken/buildslave/unity/build/Modules/QuickSearch/Editor/Indexing/SearchDatabase.cs:618)
UnityEditor.Search.SearchDatabase+<>c__DisplayClass64_0.<SaveIndex>b__0 (UnityEditor.Search.SearchTask`1[T] task, UnityEditor.Search.TaskData data) (at /Users/bokken/buildslave/unity/build/Modules/QuickSearch/Editor/Indexing/SearchDatabase.cs:632)
UnityEditor.Search.SearchTask`1[T].Resolve (T data) (at /Users/bokken/buildslave/unity/build/Modules/QuickSearch/Editor/Indexing/SearchTask.cs:190)
UnityEditor.Search.SearchDatabase+<>c__DisplayClass64_0.<SaveIndex>b__2 () (at /Users/bokken/buildslave/unity/build/Modules/QuickSearch/Editor/Indexing/SearchDatabase.cs:661)
UnityEditor.Search.Dispatcher.Update () (at /Users/bokken/buildslave/unity/build/Modules/QuickSearch/Editor/Dispatcher.cs:28)
UnityEditor.EditorApplication.Internal_InvokeTickEvents () (at /Users/bokken/buildslave/unity/build/Editor/Mono/EditorApplication.cs:333)

Comments (1)

  1. eugenner

    Jan 07, 2021 15:14

    I have got near the same when was trying to play Room scene from Oculus Integration samples:

    NullReferenceException: Object reference not set to an instance of an object
    OculusSampleFrameworkUtil.HandlePlayModeState (UnityEditor.PlayModeStateChange state) (at Assets/Oculus/SampleFramework/Editor/OculusSampleFrameworkUtil.cs:43)
    UnityEditor.EditorApplication.Internal_PlayModeStateChanged (UnityEditor.PlayModeStateChange state) (at /Users/bokken/buildslave/unity/build/Editor/Mono/EditorApplication.cs:415)

    And it's obvious that this part of the path is wrong: "/Users/bokken/".

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.