Skip to content

Commit

Permalink
Fix for NPE on boxed boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasponce committed Oct 7, 2015
1 parent 24ad3f6 commit 1386ca7
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ public Response deleteActionsHistory(
}

private ActionsCriteria buildCriteria(Long startTime, Long endTime, String actionPlugins, String actionIds,
String alertIds, String results, boolean thin) {
String alertIds, String results, Boolean thin) {
ActionsCriteria criteria = new ActionsCriteria();
criteria.setStartTime(startTime);
criteria.setEndTime(endTime);
Expand All @@ -361,7 +361,11 @@ private ActionsCriteria buildCriteria(Long startTime, Long endTime, String actio
if (!isEmpty(results)) {
criteria.setResults(Arrays.asList(results.split(",")));
}
criteria.setThin(thin);
if (thin != null) {
criteria.setThin(thin);
} else {
criteria.setThin(false);
}
return criteria;
}

Expand Down

0 comments on commit 1386ca7

Please sign in to comment.