Skip to content

Commit 4fc1e4a

Browse files
GetWorkflowExecution guard protection
1 parent a03210d commit 4fc1e4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db-connector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ func GetWorkflowExecution(ctx context.Context, id string) (*WorkflowExecution, e
818818
cacheData := []byte(cache.([]uint8))
819819
err = json.Unmarshal(cacheData, &workflowExecution)
820820

821-
if (err == nil && workflowExecution != nil)|| len(workflowExecution.ExecutionId) > 0 {
821+
if (err == nil && workflowExecution != nil) && len(workflowExecution.ExecutionId) > 0 {
822822
//log.Printf("[DEBUG] Checking individual execution cache with %d results", len(workflowExecution.Results))
823823
if strings.Contains(workflowExecution.ExecutionArgument, "Result too large to handle") {
824824
baseArgument := &ActionResult{

0 commit comments

Comments
 (0)