Procházet zdrojové kódy

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

git-svn-id: trunk@28043 -
yury před 11 roky
rodič
revize
045429327b
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      utils/pas2jni/writer.pas

+ 1 - 1
utils/pas2jni/writer.pas

@@ -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;