Преглед на файлове

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

git-svn-id: trunk@38115 -
svenbarth преди 7 години
родител
ревизия
2d52536460
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      rtl/objpas/classes/classes.inc

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