Skip to content

Commit

Permalink
fix(operate): deal with nulls from process definition search (#1593)
Browse files Browse the repository at this point in the history
* fix(operate): deal with nulls from process definition search

* use isEmpty

(cherry picked from commit faa4bf5)
  • Loading branch information
chillleader committed Dec 27, 2023
1 parent 8c96e7d commit df550c3
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,13 @@ public void query(Consumer<List<ProcessDefinition>> resultHandler) {
paginationIndex = newPaginationIdx;
}

processDefinitions.addAll(processDefinitionResult.getItems());
var items = processDefinitionResult.getItems();
if (items != null) {
processDefinitions.addAll(items);
}

} while (processDefinitionResult.getItems().size() > 0);
} while (processDefinitionResult.getItems() != null
&& !processDefinitionResult.getItems().isEmpty());

resultHandler.accept(processDefinitions);
}
Expand Down

0 comments on commit df550c3

Please sign in to comment.