this.activeNodes[id] returns null

Hi all,

I am developing my custom node.

After I redeploy application via the editor, my node sometimes does not send out the messages as expected.

By looking at the code, my custom node calls this.send(msg) and it sometimes ended up with undefined value returned from "node = this._flow.getNode(this._wire);" in send() in Node.js file.

By stepping into the getNode(), I saw a comment above the "return this.activeNodes[id];" it has comments saying "// During a stop/restart, activeNodes could be null for this id".

What should I do in my custom node to avoid this null/undefined value return?

Thanks a lot.


I fixed my issue.

Because my node was not properly deregistered.