Bug (?): BBParameter throws MissingReferenceException on `isNull` checks.

NodeCanvas Forums General Discussion Bug (?): BBParameter throws MissingReferenceException on `isNull` checks.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #13995
    guyboots_thunderbro
    Participant

    I have a custom task with a field like this:

    And usage like this:

    This code throws a ‘MissingReferenceException’:

    This is probably because the BBParameter<T>.isNull tries to access GameObject.transform before checking to see if the parent object (GameObject) is actually still valid.

    I can resolve this in a ham-fisted way by using BBParameter<GameObject> and follow the indirection myself, but it feels sloppy and like it should be handled inside of NodeCanvas itself.

    #14010
    Gavalakis
    Keymaster

    Hello and sorry for the late reply due to xmas vacation.

    Thanks for your suggestion. I’ve just fixed this. I have also attached for you here the relevant file fix in a unitypackage.
    Let me know if that works for you.

    Thanks 🙂

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

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