Search Issue Tracker

Active

Under Consideration for 6000.0.X, 6000.1.X, 6000.2.X, 6000.3.X

Votes

0

Found in

6000.0.54f1

6000.1.13f1

6000.2.0b11

6000.3.0a3

Issue ID

UUM-112268

Regression

No

"NullReferenceException" error thrown when docking UI Builder with unsaved changes

-

*Steps to reproduce:*
1. Create new Unity project
2. Open UI Builder window
3. Add element to the Hierarchy (for example Toggle)
4. Delete the added element from Hierarchy
5. Don't save changes in UI Builder
6. Dock UI Builder window to Game tab

\\
*Actual results:*  Error is thrown -
{code:java}
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.UIElements.Bindings.SerializedObjectBindingToBaseField`2[TValue,TField].OnFieldAttached () (at <8b75957d458a4d75a43ae082435fcb46>:0)
UnityEditor.UIElements.Bindings.SerializedObjectBindingBase.OnAttachToPanel (UnityEngine.UIElements.AttachToPanelEvent evt) (at <8b75957d458a4d75a43ae082435fcb46>:0)
UnityEngine.UIElements.EventCallbackFunctor`1[TEventType].Invoke (UnityEngine.UIElements.EventBase evt) (at <f00cec66743041849ac3a6c03ea57396>:0)
UnityEngine.UIElements.EventCallbackRegistry+DynamicCallbackList.Invoke (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.VisualElement target) (at <f00cec66743041849ac3a6c03ea57396>:0)
{code}

*Expected results:* No errors thrown when docking UI Builder window with unsaved changes

\\
*Reproducible with versions:* 6000.0.54f1, 6000.1.13f1, 6000.2.0b11, 6000.3.0a3

\\
*Tested on (OS):* Windows 11

\\
*Notes:*
*  on 6000.2 and 6000.3 "No measure function set in this node's config
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)" errors appear also

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.