mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-08 07:26:15 +02:00
* pas2jni: Handle null objects in the Pointer() support function.
git-svn-id: trunk@28043 -
This commit is contained in:
parent
db011dfb7a
commit
045429327b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user