Browse Source

* Check if action is assigned before calling update on it

Michaël Van Canneyt 1 year ago
parent
commit
2accac30ae
1 changed files with 2 additions and 1 deletions
  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;
 
 {****************************************************************************}