We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb20e12 commit c47b46eCopy full SHA for c47b46e
src/main/java/com/uber/cadence/internal/common/WorkflowExecutionUtils.java
@@ -226,7 +226,7 @@ private static HistoryEvent getInstanceCloseEvent(
226
227
pageToken = response.getNextPageToken();
228
History history = response.getHistory();
229
- if (history != null && history.getEvents().size() > 0) {
+ if (history != null && history.getEvents() != null && history.getEvents().size() > 0) {
230
event = history.getEvents().get(0);
231
if (!isWorkflowExecutionCompletedEvent(event)) {
232
throw new RuntimeException("Last history event is not completion event: " + event);
0 commit comments