Search Issue Tracker
Active
Under Consideration for 6000.5.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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Add comment