Fix crash

pull/57/head
Niels Andriesse 6 years ago
parent 790404912c
commit b5709473d7

@ -615,7 +615,9 @@ 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) {
publicChatAPI.setProfilePicture(server, profileKey, url); if (profileKey != null) {
publicChatAPI.setProfilePicture(server, profileKey, url);
}
} }
} }
}); });

Loading…
Cancel
Save