Fix crash

This commit is contained in:
Niels Andriesse 2019-12-03 15:03:13 +11:00
parent 790404912c
commit b5709473d7

View File

@ -615,9 +615,11 @@ public class ApplicationContext extends MultiDexApplication implements Dependenc
} }
Set<String> servers = DatabaseFactory.getLokiThreadDatabase(this).getAllPublicChatServers(); Set<String> servers = DatabaseFactory.getLokiThreadDatabase(this).getAllPublicChatServers();
for (String server : servers) { for (String server : servers) {
if (profileKey != null) {
publicChatAPI.setProfilePicture(server, profileKey, url); publicChatAPI.setProfilePicture(server, profileKey, url);
} }
} }
}
}); });
} }
// endregion // endregion