From 810fc938a4ce33ccfa7c2b361edcbc90d1c90f71 Mon Sep 17 00:00:00 2001 From: Matthew Messinger Date: Fri, 7 Sep 2018 20:43:58 -0400 Subject: [PATCH] Fix stacktrace spam when profile id is null (hypixel) --- src/hdskins/java/com/voxelmodpack/hdskins/HDSkinManager.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hdskins/java/com/voxelmodpack/hdskins/HDSkinManager.java b/src/hdskins/java/com/voxelmodpack/hdskins/HDSkinManager.java index ebead987..2292689c 100644 --- a/src/hdskins/java/com/voxelmodpack/hdskins/HDSkinManager.java +++ b/src/hdskins/java/com/voxelmodpack/hdskins/HDSkinManager.java @@ -116,6 +116,10 @@ public final class HDSkinManager implements IResourceManagerReloadListener { private CompletableFuture> loadProfileData(GameProfile profile) { return CompletableFuture.supplyAsync(() -> { + if (profile.getId() == null) { + return Collections.emptyMap(); + } + Map textureMap = Maps.newEnumMap(Type.class); for (SkinServer server : skinServers) {