HaxeObject.create returns null when handle is null
This commit is contained in:
@@ -19,7 +19,12 @@ public class HaxeObject
|
||||
__haxeHandle = value;
|
||||
}
|
||||
|
||||
public static HaxeObject create(long inHandle) { return new HaxeObject(inHandle); }
|
||||
public static HaxeObject create(long inHandle)
|
||||
{
|
||||
if (inHandle == 0)
|
||||
return null;
|
||||
return new HaxeObject(inHandle);
|
||||
}
|
||||
|
||||
|
||||
protected void finalize() throws Throwable {
|
||||
|
||||
Reference in New Issue
Block a user