Skip to content

Commit

Permalink
[cuebot] Avoid NullPointerException in SortableShow. (#1056)
Browse files Browse the repository at this point in the history
  • Loading branch information
splhack committed Oct 20, 2021
1 parent 2276cf2 commit 4b156af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cuebot/src/main/java/com/imageworks/spcue/SortableShow.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ public boolean isSkipped(AllocationInterface a) {
}

public void skip(String tags, long cores, long memory) {
failed.put(tags, new long[] { cores, memory});
if (tags != null) {
failed.put(tags, new long[] { cores, memory});
}
}

/**
Expand Down

0 comments on commit 4b156af

Please sign in to comment.