Fix NPE in FastJobStorage#getJobCountForQueue().
This commit is contained in:
parent
a4a2d2fc0d
commit
9cd1a12b6a
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ public class FastJobStorage implements JobStorage {
|
|||
@Override
|
||||
public synchronized int getJobCountForQueue(@NonNull String queueKey) {
|
||||
return (int) Stream.of(jobs)
|
||||
.filter(j -> j.getQueueKey().equals(queueKey))
|
||||
.filter(j -> queueKey.equals(j.getQueueKey()))
|
||||
.count();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue