* pas2jni: Handle null objects in the Pointer() support function.

git-svn-id: trunk@28043 -
This commit is contained in:
yury 2014-06-24 09:49:09 +00:00
parent db011dfb7a
commit 045429327b

View File

@ -1286,7 +1286,7 @@ begin
Fjs.DecI;
Fjs.WriteLn('}');
Fjs.WriteLn;
Fjs.WriteLn('public static long Pointer(PascalObject obj) { return obj._pasobj; }');
Fjs.WriteLn('public static long Pointer(PascalObject obj) { return (obj == null) ? null : obj._pasobj; }');
// Record
Fjs.WriteLn;