2
0
Эх сурвалжийг харах

* only check for the method if one is given at all (otherwise everything would be skipped)

git-svn-id: trunk@38115 -
svenbarth 7 жил өмнө
parent
commit
2d52536460

+ 1 - 1
rtl/objpas/classes/classes.inc

@@ -559,7 +559,7 @@ begin
         Continue;
         Continue;
       end;
       end;
       { then check for the method }
       { then check for the method }
-      if entry^.Method <> aMethod then begin
+      if Assigned(aMethod) and (entry^.Method <> aMethod) then begin
         lastentry := entry;
         lastentry := entry;
         entry := entry^.Next;
         entry := entry^.Next;
         Continue;
         Continue;