Search Issue Tracker

Fixed

Fixed in 2023.2.0a11

Votes

2

Found in

2023.2.0a10

Issue ID

UUM-32684

Regression

Yes

NullReferenceException is thrown after opening "My Assets" window in the Package Manager

--

-

Reproduction steps:
# Create a new project
# Open Package Manager
# Click on "My Assets" Button

Expected result: No errors or warnings are thrown

Actual result: The following error is thrown:
{code:java}
NullReferenceException: Object reference not set to an instance of an object UnityEditor.PackageManager.UI.Internal.AssetStoreListOperation.Stop () (at /home/bokken/build/output/unity/unity/Modules/PackageManagerUI/Editor/Services/AssetStore/AssetStoreListOperation.cs:104) UnityEditor.PackageManager.UI.Internal.AssetStoreClientV2.CancelListPurchases () (at /home/bokken/build/output/unity/unity/Modules/PackageManagerUI/Editor/Services/AssetStore/AssetStoreClientV2.cs:146) UnityEditor.PackageManager.UI.Internal.AssetStoreClientV2.ListPurchases (UnityEditor.PackageManager.UI.Internal.PurchasesQueryArgs queryArgs) (at /home/bokken/build/output/unity/unity/Modules/PackageManagerUI/Editor/Services/AssetStore/AssetStoreClientV2.cs:124) UnityEditor.PackageManager.UI.Internal.PageRefreshHandler.Refresh (UnityEditor.PackageManager.UI.Internal.RefreshOptions options) (at /home/bokken/build/output/unity/unity/Modules/PackageManagerUI/Editor/Services/Pages/PageRefreshHandler.cs:124) UnityEditor.PackageManager.UI.Internal.PageRefreshHandler.Refresh (UnityEditor.PackageManager.UI.Internal.IPage page) (at /home/bokken/build/output/unity/unity/Modules/PackageManagerUI/Editor/Services/Pages/PageRefreshHandler.cs:95) UnityEditor.PackageManager.UI.Internal.PageRefreshHandler.OnActivePageChanged (UnityEditor.PackageManager.UI.Internal.IPage page) (at /home/bokken/build/output/unity/unity/Modules/PackageManagerUI/Editor/Services/Pages/PageRefreshHandler.cs:90) UnityEditor.PackageManager.UI.Internal.PageManager.set_activePage (UnityEditor.PackageManager.UI.Internal.IPage value) (at /home/bokken/build/output/unity/unity/Modules/PackageManagerUI/Editor/Services/Pages/PageManager.cs:50) UnityEditor.PackageManager.UI.Internal.Sidebar.OnRowClick (System.String pageId) (at /home/bokken/build/output/unity/unity/Modules/PackageManagerUI/Editor/UI/Sidebar/Sidebar.cs:90) UnityEditor.PackageManager.UI.Internal.Sidebar+<>c__DisplayClass12_0.<CreateAndAddSidebarRow>b__0 () (at /home/bokken/build/output/unity/unity/Modules/PackageManagerUI/Editor/UI/Sidebar/Sidebar.cs:74) UnityEditor.PackageManager.UI.Internal.VisualElementExtensions+<>c__DisplayClass0_0.<OnLeftClick>b__0 (UnityEngine.UIElements.MouseDownEvent e) (at /home/bokken/build/output/unity/unity/Modules/PackageManagerUI/Editor/UI/Common/VisualElementExtensions.cs:13) UnityEngine.UIElements.EventCallbackFunctor`1[TEventType].Invoke (UnityEngine.UIElements.EventBase evt) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/Events/EventCallback.cs:67) UnityEngine.UIElements.EventCallbackRegistry+DynamicCallbackList.Invoke (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.VisualElement target) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/Events/EventCallbackRegistry.cs:206) UnityEngine.UIElements.EventDispatchUtilities.HandleEventAcrossPropagationPathWithCompatibilityEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.EventBase compatibilityEvt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.VisualElement target, System.Boolean isCapturingTarget) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/Events/EventDispatchUtilities.cs:317) UnityEngine.UIElements.EventDispatchUtilities.DispatchToCachedElementUnderPointerOrPanelRoot (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, System.Int32 pointerId, UnityEngine.Vector2 position) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/Events/EventDispatchUtilities.cs:538) UnityEngine.UIElements.EventDispatchUtilities.DispatchToCapturingElementOrElementUnderPointer (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, System.Int32 pointerId, UnityEngine.Vector2 position) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/Events/EventDispatchUtilities.cs:581) UnityEngine.UIElements.PointerEventBase`1[T].Dispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/Events/PointerEvents.cs:1040) UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/EventDispatcher.cs:336) UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/EventDispatcher.cs:200) UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/Panel.cs:550) UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/UIElementsUtility.cs:497) UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/UIElementsUtility.cs:225) UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/UIElementsUtility.cs:74) UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/UIElementsUtility.cs:28) UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at /home/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:197)
{code}
Tested on: Ubuntu 20, macOS Monterey, Windows 10

  1. Resolution Note (fix version 2023.2.0a11):

    Fixed in: 2023.2.0a11

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.