Checking if null is passed from Haxe with JNI


#1

Hi guys,

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

Thank you.


#2

Perhaps this should return null if the handle is null?


#3

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

Is there way to check atm?


#4

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


#5

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