Fixed null pointer exception when getting avatar when NONE
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
This commit is contained in:
@@ -90,6 +90,9 @@ public class AvatarController implements LastModified {
|
||||
if (userSettings.getAvatarScheme() == AvatarScheme.CUSTOM || forceCustom) {
|
||||
return settingsService.getCustomAvatar(username);
|
||||
}
|
||||
if(userSettings.getAvatarScheme() == AvatarScheme.NONE) {
|
||||
return null;
|
||||
}
|
||||
return settingsService.getSystemAvatar(userSettings.getSystemAvatarId());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user