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 e87ddac3a0
commit f405a20491

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();
}