Steps to reproduce:
- Open any Project
- Import the attached Unity Package
- In the Project Browser search for "v2Animator" and open it
- Double click the State "Running Blendtree"
- Select either the "Walk" or "Run" Blend Tree
- Go back to the Base Layer and right click anywhere on the black board
- Select "Create State > From Selected Clip"
Actual results: Error "NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Graphs.AnimationStateMachine.GraphGUI.AddStateFromSelectedMotionCallback (System.Object data) (at <ba877b655e90405cae8628ad9b835066>:0)
UnityEditor.GenericMenu.CatchMenu (System.Object userData, System.String[] options, System.Int32 selected) (at <dff6788e8d804d65aac3289e2f500ade>:0)" is logged
Expected results: No Error is logged and Blend Tree is not considered as a selected Clip
Reproducible with versions: 2022.3.64f1, 6000.0.54f1, 6000.1.14f1, 6000.2.0b13, 6000.3.0a3
Tested on (OS): Windows 11