mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-25 23:47:26 +00:00
Fix NPE in FastJobStorage#getJobCountForQueue().
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user