Browse Source

* Additional check on action.

Michaël Van Canneyt 1 year ago
parent
commit
15ba298bae
1 changed files with 2 additions and 0 deletions
  1. 2 0
      rtl/objpas/classes/action.inc

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

@@ -45,6 +45,8 @@ end;
 
 function TBasicActionLink.Execute(AComponent: TComponent): Boolean;
 begin
+  if not Assigned(FAction) then 
+    exit;
   FAction.ActionComponent := AComponent;
   try
     Result := FAction.Execute;