Browse Source

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

git-svn-id: trunk@38115 -
svenbarth 7 years ago
parent
commit
2d52536460
1 changed files with 1 additions and 1 deletions
  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;