mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-26 04:07:26 +00:00
Fix NPE in FastJobStorage#getJobCountForQueue().
This commit is contained in:
@@ -153,7 +153,7 @@ public class FastJobStorage implements JobStorage {
|
|||||||
@Override
|
@Override
|
||||||
public synchronized int getJobCountForQueue(@NonNull String queueKey) {
|
public synchronized int getJobCountForQueue(@NonNull String queueKey) {
|
||||||
return (int) Stream.of(jobs)
|
return (int) Stream.of(jobs)
|
||||||
.filter(j -> j.getQueueKey().equals(queueKey))
|
.filter(j -> queueKey.equals(j.getQueueKey()))
|
||||||
.count();
|
.count();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user