mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-11 09:49:15 +02:00
* pas2jni: Return null if a method pointer is empty.
git-svn-id: trunk@41374 -
This commit is contained in:
parent
6d95018c80
commit
f7f1286e51
@ -1853,6 +1853,8 @@ begin
|
||||
Fps.WriteLn('var mpi: _TMethodPtrInfo;');
|
||||
Fps.WriteLn('begin');
|
||||
Fps.IncI;
|
||||
Fps.WriteLn('Result:=nil;');
|
||||
Fps.WriteLn('if (m.Data = nil) and (m.Code = nil) then exit;');
|
||||
Fps.WriteLn('_MethodPointersCS.Enter;');
|
||||
Fps.WriteLn('try');
|
||||
Fps.IncI;
|
||||
|
Loading…
Reference in New Issue
Block a user