Search Issue Tracker

Won't Fix

Won't Fix in 1.7.X

Votes

0

Found in [Package]

1.7.4

Issue ID

UVSB-1830

Regression

No

[Linux] NullReferenceException in the console when duplicating variables

Package: Visual Scripting

-

Reproducible on:

  • VS version: 1.7.4, 1.7.3
  • Unity version: 2021.2.0b11
  • Platform: Ubuntu 20.04.2

Steps to Reproduce:

  1. Create a game object and attach a script graph to it
  2. Create a new variable of any type
  3. Right click on the = next to "Type" and click to duplicate

Actual Results:

  • Variable is not duplicated and and error appears in the console
  • NullReferenceException is thrown in the console

{code:java}
NullReferenceException: Object reference not set to an instance of an object
Unity.VisualScripting.ReorderableList.ReorderableListControl.DefaultContextMenuHandler (System.Object userData) (at Library/PackageCache/com.unity.visualscripting@06720e5909ba-1631283327065/Editor/VisualScripting.Core/Dependencies/ReorderableList/ReorderableListControl.cs:1919)
UnityEditor.GenericMenu.CatchMenu (System.Object userData, System.String[] options, System.Int32 selected) (at /home/bokken/buildslave/unity/build/Editor/Mono/GUI/GenericMenu.cs:125)
{code}

Expected Results:

  • No errors should appear in the console
  • variable should be properly duplicated.
  1. Resolution Note:

    This will not be fixed

  2. Resolution Note (1.7.X):

    According Linux editor team, it should be fixed once the ono PR https://ono.unity3d.com/unity/unity/pull-request/127311/_/desktop/linux/shader-graph-create-node-bug lands

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.