Skip to content

Commit

Permalink
[jobs] fix possible NPE when searching jobs via REST
Browse files Browse the repository at this point in the history
  • Loading branch information
cmark committed Dec 7, 2020
1 parent e149a4d commit cc704a8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public SearchJobRequestBuilder filterByState(String state) {
}

public SearchJobRequestBuilder filterByState(Iterable<String> states) {
return filterByStates(Iterables.transform(states, RemoteJobState::valueOfIgnoreCase));
return filterByStates(states == null ? null : Iterables.transform(states, RemoteJobState::valueOfIgnoreCase));
}

public SearchJobRequestBuilder filterByState(RemoteJobState state) {
Expand Down

0 comments on commit cc704a8

Please sign in to comment.