Checking if null is passed from Haxe with JNI

Hi guys,

Would checking hxObject.__haxeHandle != 0 work or do I need to do something else?

Thank you.

Perhaps this should return null if the handle is null?

That makes the most sense I think. Expected it to be that way at first.

Is there way to check atm?

Could you try this change locally? If it works, I think we should change it in Lime

Otherwise, your approach seems like it would work

1 Like

Got it. Thank you! Been checking like that for a while but need confirmation to feel safe. :laughing: