Skip to content

Commit

Permalink
Fix nil pointer issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaddoll committed Dec 17, 2024
1 parent eb20e12 commit c47b46e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ private static HistoryEvent getInstanceCloseEvent(

pageToken = response.getNextPageToken();
History history = response.getHistory();
if (history != null && history.getEvents().size() > 0) {
if (history != null && history.getEvents() != null && history.getEvents().size() > 0) {
event = history.getEvents().get(0);
if (!isWorkflowExecutionCompletedEvent(event)) {
throw new RuntimeException("Last history event is not completion event: " + event);
Expand Down

0 comments on commit c47b46e

Please sign in to comment.