ソースを参照

* Check if action is assigned before calling update on it

Michaël Van Canneyt 1 年間 前
コミット
2accac30ae
1 ファイル変更2 行追加1 行削除
  1. 2 1
      rtl/objpas/classes/action.inc

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

@@ -79,7 +79,8 @@ end;
 
 function TBasicActionLink.Update: Boolean;
 begin
-  Result := FAction.Update;
+  if Assigned(Faction) then
+    Result := FAction.Update;
 end;
 
 {****************************************************************************}