[BUG] SendEvent with missing BB parameter halts execution

Forums 💬 NodeCanvas ⚙️ Support [BUG] SendEvent with missing BB parameter halts execution

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #16652
    zsoik
    Participant

      When using the Action “SendEvent” and binding a non-existing BBParameter to the name field, it’ll produce ArgumentNullException (from within MessageRouters dictionary) when it executes and halts graph execution with it.

      Tested with 2.9.2 & Unity 2018.4.4f1

      #16654
      zsoik
      Participant

        I have to say we didn’t observe this behaviour in the editor, only in a built player. In the editor this seems to work fine. We worked around this issue by patching the SendEvent action to check the BBParameter for name if “.isNull” and not sending the event at all if thats the case.

        #16653
        Gavalakis
        Keymaster

          Hello again.

          Thanks for letting me know. I have just added a string.IsNullOrEmpty check in the Dispatch method in MessageRouter, so that the fix is more generic for all actions or other cases where events through MessageRouter are sent.

          Thanks!

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