From 4185e5bb5fca6c9a5a0ff7080a0dbf885e4b4bf0 Mon Sep 17 00:00:00 2001 From: ZekerZhayard Date: Thu, 21 Dec 2023 22:28:03 +0800 Subject: [PATCH] Fix #286 (#287) --- 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 class CustomSkinLoader { profileCache.setLoading(credential, true); profile = loadProfile0(gameProfile, false); } - return profile; + return profile == null ? new UserProfile() : profile; } //Core