Search Issue Tracker

Fixed in 10.1.0

Votes

0

Found in [Package]

10.0.0-preview.27

Issue ID

1281299

Regression

Yes

[Shader Graph][URP] NullReferenceException thrown on renaming newely created property in BlackBoard

Package: Shader Graph

-

NullReferenceException thrown on renaming newely created property in BlackBoard

Steps to repro:

1. Create a new Project in URP Template
2. Import Visual Effect Graph
3. Create a new VFX and open it in Editor
4. Create a new Property in BlackBoard
5. Rename the property node and press Enter

Expected Result:
The property name is changed

Actual Result:
Nullreference Exception thrown on renaming the Property node

Reproducible on: 10.0.0-preview.27 with 2020.2.0b5, 2020.2.0a21

Working fine on: 9.0.0-preview.54 with 2020.1.8f1

Environment: Windows 10 and Mac 10.15

Stack Trace:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.ShaderGraph.Drawing.BlackboardFieldView.InspectorUpdateTrigger () (at Library/PackageCache/com.unity.shadergraph@10.0.0-preview.27/Editor/Drawing/Blackboard/BlackboardFieldView.cs:91)
UnityEditor.ShaderGraph.Drawing.BlackboardProvider.EditTextRequested (UnityEditor.Experimental.GraphView.Blackboard blackboard, UnityEngine.UIElements.VisualElement visualElement, System.String newText) (at Library/PackageCache/com.unity.shadergraph@10.0.0-preview.27/Editor/Drawing/Blackboard/BlackboardProvider.cs:259)
UnityEditor.Experimental.GraphView.BlackboardField.OnEditTextFinished () (at <f3cbee11fcf24e738f9a6216ec699f5c>:0)
UnityEditor.Experimental.GraphView.BlackboardField.<.ctor>b__20_0 (UnityEngine.UIElements.FocusOutEvent e) (at <f3cbee11fcf24e738f9a6216ec699f5c>:0)
UnityEngine.UIElements.EventCallbackFunctor`1[TEventType].Invoke (UnityEngine.UIElements.EventBase evt) (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.UIElements.EventCallbackRegistry.InvokeCallbacks (UnityEngine.UIElements.EventBase evt) (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.UIElements.EventDispatchUtilities.PropagateEvent (UnityEngine.UIElements.EventBase evt) (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.UIElements.DefaultDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.UIElements.EventDispatcher.OpenGate () (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <17eda2bc62404501b9f55a9eba6f522e>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <931b26b61f444e3485195721b0227b20>:0)

  1. Resolution Note (fix version 10.1.0):

    Issue is fixed and Dev have not intentionally made a fix for this case, but it is working fine on the latest version

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.