Fix NullPointerException

Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference

Signed-off-by: stefan-niedermann <info@niedermann.it>
This commit is contained in:
stefan-niedermann 2020-02-16 11:00:18 +01:00
parent 4b1c60e874
commit 442b598dc0

View file

@ -245,7 +245,7 @@ public class NoteServerSyncHelper {
}
} else {
Log.d(TAG, "... do nothing");
if (callbacksPull.containsKey(ssoAccount.name) && callbacksPull.get(ssoAccount.name) != null) {
if (callbacksPush.containsKey(ssoAccount.name) && callbacksPush.get(ssoAccount.name) != null) {
for (ISyncCallback callback : callbacksPush.get(ssoAccount.name)) {
callback.onScheduled();
}