Reply To: NullReferenceException when playing a build version

FlowCanvas Forums Support NullReferenceException when playing a build version Reply To: NullReferenceException when playing a build version

#1581
Gavalakis
Keymaster

Hello Robert!

Sorry for the late reply.
I think I have found the cause of problem and although it requires a few changes to fix it, a rather faster quick fix, would be to please open up FlowNode.cs and in both the “GetInputPort” and “GetOutputPort” methods, please remove the “#if UNITY_EDITOR | #endif” directive, so that the code within in runs in the build as well.
There is a similar ‘#if UNITY_EDITOR’ directive in the method “DeserializePortValues” which you might also want to remove (keeping the code within the directive).

Please let me know whether this fixes the problem for you in the build application, or not.
Thank you.

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