From ab2e9641e439cecb4bc8afedd203dd299023f818 Mon Sep 17 00:00:00 2001 From: ZekerZhayard Date: Thu, 21 Dec 2023 22:25:31 +0800 Subject: [PATCH] Fix #286 --- Common/src/main/java/customskinloader/CustomSkinLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/src/main/java/customskinloader/CustomSkinLoader.java b/Common/src/main/java/customskinloader/CustomSkinLoader.java index bd3750d..f37dab7 100644 --- a/Common/src/main/java/customskinloader/CustomSkinLoader.java +++ b/Common/src/main/java/customskinloader/CustomSkinLoader.java @@ -113,7 +113,7 @@ public static UserProfile loadProfile(GameProfile gameProfile) { profileCache.setLoading(credential, true); profile = loadProfile0(gameProfile, false); } - return profile; + return profile == null ? new UserProfile() : profile; } //Core