From 8694963313e22376c2dcda756eb656e666181a7e Mon Sep 17 00:00:00 2001 From: Gravita Date: Sat, 4 Sep 2021 19:53:56 +0700 Subject: [PATCH] [FIX] TextureProvider NPE error message --- .../java/pro/gravit/launchserver/manangers/AuthManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/manangers/AuthManager.java b/LaunchServer/src/main/java/pro/gravit/launchserver/manangers/AuthManager.java index 0894c9bb..3c356547 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/manangers/AuthManager.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/manangers/AuthManager.java @@ -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); }