Skip to content

Commit 95895f6

Browse files
fix: First or default - cannot assume it exists
1 parent 467809a commit 95895f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PowerAutomateMockUp/FlowParser/FlowRunner.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ private bool DetermineNextAction(string nextAction, ActionStatus actionResultSta
136136
else
137137
{
138138
currentActionDesc =
139-
_scopeManager.CurrentActionDescriptions.First(a => a.Name == nextAction);
139+
_scopeManager.CurrentActionDescriptions.FirstOrDefault(a => a.Name == nextAction);
140140
}
141141

142142
return currentActionDesc != null;

0 commit comments

Comments
 (0)