[BUG] SendEvent with missing BB parameter halts execution

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

Tagged: ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #14471
    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

    #14473
    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.

    #14494
    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!

    Join us on Discord: https://discord.gg/97q2Rjh

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