Search Issue Tracker
Active
Under Consideration for 6000.6.X
Votes
1
Found in
6000.0.54f1
6000.1.13f1
6000.2.0b11
6000.3.0a3
6000.4.0a1
6000.5.0a1
6000.6.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
- 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