Skip to content

Commit

Permalink
Fixes potential NPE.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrtannus committed Sep 10, 2018
1 parent 055d8ff commit 8ef30a3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public void updateIcon(Collection<CyJobStatus> values) {
// ERROR/FAILED
// CANCELED/PURGED/TERMINATED/UNKNOWN
// QUEUED/SUBMITTTED/RUNNING
if (values != null || values.size() > 0) {
if (values != null && values.size() > 0) {
for (CyJobStatus status: values) {
CyJobStatus.Status jobStatus = status.getStatus();
if (jobStatus.equals(CyJobStatus.Status.FINISHED)) {
Expand Down

0 comments on commit 8ef30a3

Please sign in to comment.