Skip to content

Commit 13c09d2

Browse files
committed
Handle null reference in call back state
Signed-off-by: manick02 <[email protected]>
1 parent 1edcda4 commit 13c09d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/src/main/java/io/serverlessworkflow/utils/WorkflowUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ private static List<String> getWorkflowConsumedEventsFromState(Workflow workflow
181181
}
182182
} else if (state instanceof CallbackState) {
183183
CallbackState callbackState = (CallbackState) state;
184-
eventReferences.add(callbackState.getEventRef());
184+
if (callbackState.getEventRef() != null) eventReferences.add(callbackState.getEventRef());
185185
} else if (state instanceof EventState) {
186186
EventState eventState = (EventState) state;
187187
if (eventState.getOnEvents() != null) {

0 commit comments

Comments
 (0)