- try {
- retrieveGroupAvatar(groupId, groupSecretParams, group.getAvatar());
- } catch (IOException e) {
- System.err.println("Failed to download group avatar, ignoring ...");
+ final String avatar = group.getAvatar();
+ if (avatar != null && !avatar.isEmpty()) {
+ try {
+ retrieveGroupAvatar(groupId, groupSecretParams, avatar);
+ } catch (IOException e) {
+ logger.warn("Failed to download group avatar, ignoring: {}", e.getMessage());
+ }