Explorar o código

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

git-svn-id: trunk@38115 -
svenbarth %!s(int64=7) %!d(string=hai) anos
pai
achega
2d52536460
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      rtl/objpas/classes/classes.inc

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

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