Search Issue Tracker
Active
Under Consideration for 6000.0.X, 6000.2.X, 6000.3.X, 6000.4.X
Votes
1
Found in
6000.0.54f1
6000.1.13f1
6000.2.0b11
6000.3.0a3
6000.4.0a1
6000.5.0a1
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
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
Add comment