How to reproduce:
- Open the attached “GraphToolkitSetTitleError.zip” project
- In the Project window, double-click the "Sandbox Graph" asset
- In the top toolbar of the Graph window, click the "Add Custom node" button
- Observe the Console and Graph editor view
Actual result: “NullReferenceException: Object reference not set to an instance of an object” is thrown, and the node is not created
Expected result: A new Custom Node is successfully instantiated, and it appears in the graph
Reproducible with: 6000.6.0a5, 6000.6.0b8, 6000.7.0a4
Could not test with: 6000.0.0f1, 6000.0.81f1, 6000.3.22f1, 6000.5.8f1 (The “GraphToolbarElement” API was not introduced until the 6000.6.0a5)
Reproducible on: Windows 10 (by user), Windows 11
Not reproducible on: No other environments tested
Workaround: Set the Position property before setting the Title (or Subtitle, Tooltip, etc.) when creating the node programmatically