NullRef when adding a new Node.

Forums 💬 NodeCanvas ⚙️ Support NullRef when adding a new Node.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15403
    wesposito
    Participant

      Hi everyone and thanks in advance for any replies to this thread.

      We recently updated our Unity version in our project and it has seemingly broken our ability to add new nodes to NodeCanvas. We are currently running v3.2.0 of NodeCanvas and Unity 2020.3.41f1. (Is our Unity version not supported anymore?)

      I am seeing the following NullRef error when attempting to add a new node to a canvas via the pop-up menu. For context, the pop-up menu does not populate and this is the error provided.

      ————————————————————————————————————–

      NullReferenceException: Object reference not set to an instance of an object

      ParadoxNotion.Design.EditorUtils.GetMenuItems (UnityEditor.GenericMenu menu) (at Assets/ParadoxNotion/CanvasCore/Common/Design/PartialEditor/EditorUtils/EditorUtils.ContextMenus.cs:356)

      ParadoxNotion.Design.GenericMenuBrowser.GenerateTree () (at Assets/ParadoxNotion/CanvasCore/Common/Design/PartialEditor/GenericMenuBrowser.cs:270)

      ParadoxNotion.Services.Threader+<>c__DisplayClass8_0.<StartAction>b__0 () (at Assets/ParadoxNotion/CanvasCore/Common/Runtime/Services/Threader.cs:44)

      System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) (at <695d1cc93cca45069c528c15c9fdd749>:0)

      System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <695d1cc93cca45069c528c15c9fdd749>:0)

      System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <695d1cc93cca45069c528c15c9fdd749>:0)

      System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) (at <695d1cc93cca45069c528c15c9fdd749>:0)

      System.Threading.ThreadHelper.ThreadStart () (at <695d1cc93cca45069c528c15c9fdd749>:0)

      UnityEngine.<>c:<RegisterUECatcher>b__0_0(Object, UnhandledExceptionEventArgs)

      #15404
      zsoik
      Participant

        There have been an internal unity API change that has been used by NC. You can fix it yourself in EditorUtils.ContextMenu..cs for the GetMenuItems() method by replacing this block of code

        with

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.