* pas2jni: Return null if a method pointer is empty.

git-svn-id: trunk@41374 -
This commit is contained in:
yury 2019-02-18 16:31:04 +00:00
parent 6d95018c80
commit f7f1286e51

View File

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