Search Issue Tracker

Active

Under Consideration for 6000.5.X

Votes

0

Found in

6000.3.10f1

6000.4.0b10

6000.5.0a8

Issue ID

UUM-136303

Regression

No

NullReferenceException occurs when searching presets in “Select Preset” window

Search

-

  1. Create a Unity project
  2. Set Unity theme to "Light" (Unity -> Settings -> General -> Editor Theme -> Light)
  3. Click the "AI" button
  4. Click "Agree and install Unity AI"
  5. When the installation is complete, open "Assistant"
  6. Verify that "Agent" mode would be selected
  7. Type any command "Generate 3D model of the house"
  8. Wait, while it will be generated
  9. Select the "Models" folder in the "Project" window 
  10. Select an asset in the "House_Assets" folder
  11. In the "Inspector" window, click the "Select Preset" icon
  12. Create a few Gitf Importer presets
  13. Open the Inspector window in the "Select Preset" window
  14. Select one newly created preset
  15. Verify that its details are displayed in the Inspector window
  16. Type the search string into the "Search Preset" field and click Enter
  17. Observe the result

Actual results: Console displays "NullReferenceException: Object reference not set to an instance of an object" error

Expected results: No error in the Console view

Reproducible with versions: 6000.3.10f1, 6000.4.0b10, 6000.5.0a8

Tested on (OS): macOS - Tahoe 26.3

Notes: Full error
{code:java}
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Search.SearchView.GetDefaultAction (UnityEditor.Search.SearchSelection selection, System.Collections.Generic.IEnumerable`1[T] items) (at /Users/bokken/build/output/unity/unity/Modules/QuickSearch/Editor/UITK/SearchView.cs:686)
UnityEditor.Search.SearchBaseCollectionView`1[T].OnKeyNavigation (UnityEngine.UIElements.KeyDownEvent evt) (at /Users/bokken/build/output/unity/unity/Modules/QuickSearch/Editor/UITK/SearchBaseCollectionView.cs:344)
UnityEditor.Search.SearchGlobalEventHandlerManager.HandleGlobalEventHandlers[T] (UnityEditor.Search.SearchGlobalEventHandlerManager eventManager, T evt) (at /Users/bokken/build/output/unity/unity/Modules/QuickSearch/Editor/UITK/SearchGlobalEventHandlerManager.cs:106)
UnityEditor.Search.SearchWindow.HandleKeyboardNavigation (UnityEngine.UIElements.VisualElement target, UnityEngine.UIElements.KeyDownEvent evt, UnityEngine.Event imguiEvt) (at /Users/bokken/build/output/unity/unity/Modules/QuickSearch/Editor/UITK/SearchWindow.cs:241)
UnityEditor.Search.SearchWindow.OnGlobalKeyDownEvent (UnityEngine.UIElements.KeyDownEvent evt) (at /Users/bokken/build/output/unity/unity/Modules/QuickSearch/Editor/UITK/SearchWindow.cs:200)
UnityEngine.UIElements.EventCallbackFunctor`1[TEventType].Invoke (UnityEngine.UIElements.EventBase evt) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Events/EventCallback.cs:64)
UnityEngine.UIElements.EventCallbackRegistry+DynamicCallbackList.Invoke (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.VisualElement target) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Events/EventCallbackRegistry.cs:245)
UnityEngine.UIElements.EventDispatchUtilities.HandleEventAcrossPropagationPath (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.VisualElement target, System.Boolean isCapturingTarget) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Events/EventDispatchUtilities.cs:179)
UnityEngine.UIElements.EventDispatchUtilities.DispatchToFocusedElementOrPanelRoot (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Events/EventDispatchUtilities.cs:509)
UnityEngine.UIElements.KeyboardEventBase`1[T].Dispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Events/KeyboardEvents.cs:265)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/EventDispatcher.cs:420)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/EventDispatcher.cs:216)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Panel.cs:723)
UnityEditor.UIElements.EditorEventDispatchUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.Event eventInstance) (at /Users/bokken/build/output/unity/unity/Modules/UIElementsEditor/EditorEventDispatchUtility.cs:89)
UnityEditor.UIElements.DefaultWindowBackend.ProcessEvent (UnityEngine.Event e) (at /Users/bokken/build/output/unity/unity/Modules/UIElementsEditor/WindowBackends/DefaultWindowBackend.cs:114)
UnityEditor.GUIView.ProcessEvent (UnityEngine.EntityId entityId, System.IntPtr nativeEventPtr, System.Boolean& result) (at /Users/bokken/build/output/unity/unity/Editor/Mono/GUIView.cs:70)
{code}

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.