mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FIX] TextureProvider NPE error message
This commit is contained in:
parent
077e6f3053
commit
8694963313
1 changed files with 3 additions and 0 deletions
|
@ -303,6 +303,9 @@ public PlayerProfile getPlayerProfile(AuthProviderPair pair, User user) {
|
|||
if (user instanceof UserSupportTextures) {
|
||||
return new PlayerProfile(user.getUUID(), user.getUsername(), ((UserSupportTextures) user).getSkinTexture(), ((UserSupportTextures) user).getCloakTexture());
|
||||
}
|
||||
if (pair.textureProvider == null) {
|
||||
throw new NullPointerException("TextureProvider not found");
|
||||
}
|
||||
return getPlayerProfile(user.getUUID(), user.getUsername(), "", pair.textureProvider);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue