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 e5a4005
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ 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 e5a4005

Please sign in to comment.