diff --git a/src/main/java/com/songoda/core/utils/ItemUtils.java b/src/main/java/com/songoda/core/utils/ItemUtils.java index 6d4c3ca9..5c4f9d45 100644 --- a/src/main/java/com/songoda/core/utils/ItemUtils.java +++ b/src/main/java/com/songoda/core/utils/ItemUtils.java @@ -354,7 +354,7 @@ public class ItemUtils { } public static String getDecodedTexture(String encoded) { - return StringUtils.substringBetween(new String(Base64.getDecoder().decode(encoded)), "texture/", "\""); + return encoded != null ? StringUtils.substringBetween(new String(Base64.getDecoder().decode(encoded)), "texture/", "\"") : null; } /**