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
- Create a Unity project
- Set Unity theme to "Light" (Unity -> Settings -> General -> Editor Theme -> Light)
- Click the "AI" button
- Click "Agree and install Unity AI"
- When the installation is complete, open "Assistant"
- Verify that "Agent" mode would be selected
- Type any command "Generate 3D model of the house"
- Wait, while it will be generated
- Select the "Models" folder in the "Project" window
- Select an asset in the "House_Assets" folder
- In the "Inspector" window, click the "Select Preset" icon
- Create a few Gitf Importer presets
- Open the Inspector window in the "Select Preset" window
- Select one newly created preset
- Verify that its details are displayed in the Inspector window
- Type the search string into the "Search Preset" field and click Enter
- 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}
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Add comment