Search Issue Tracker

Won't Fix

Votes

0

Found in [Package]

8.2.0

Issue ID

1263044

Regression

No

[URP] NullReferenceException error is thrown on pressing CTRL + Z after closing Sprite Lit Graph

Package: Scriptable Render Pipeline Universal

-

NullReferenceException error is thrown on pressing CTRL + Z after closing Sprite Lit Graph

Steps to repro:
1. Create a new URP template project
2. Project window > "+" > Shader > 2D Renderer > Sprite Lit Graph (Experimental)
3. Open newly Created Lit Graph > Create any Property > Drag the property in Graph Editor.
4. Save The Graph > Close the Shader Graph.
5. Press CTRL + Z.

Actual Result:
NullReferenceException error is thrown in the console.

Expected Result:
No error in the console.

Reproducible in:
2020.2.0a18, 2020.1.0b16 with 8.2.0

Working Fine in:
2020.2.0a18 With Package Version 9.0.0, 8.1.0.

Environment:
Occurring only on Windows 10.

Stack trace:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Experimental.GraphView.GraphView.RestoreSavedSelection (UnityEditor.Experimental.GraphView.IGraphViewSelection graphViewSelection) (at C:/buildslave/unity/build/Modules/GraphViewEditor/Views/GraphView.cs:316)
UnityEditor.Experimental.GraphView.GraphView.UndoRedoPerformed () (at C:/buildslave/unity/build/Modules/GraphViewEditor/Views/GraphView.cs:366)
UnityEditor.Undo.Internal_CallUndoRedoPerformed () (at C:/buildslave/unity/build/Editor/Mono/Undo/Undo.bindings.cs:231)
UnityEditor.EditorApplication:Internal_CallGlobalEventHandler() (at C:/buildslave/unity/build/Editor/Mono/EditorApplication.cs:432)

  1. Resolution Note:

    Working in latest version, not worth backporting.

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.