nullcheck for texture decode

This commit is contained in:
jascotty2 2019-09-09 10:20:49 -05:00
parent c9231fa07c
commit 1395c95b20

View File

@ -354,7 +354,7 @@ public class ItemUtils {
} }
public static String getDecodedTexture(String encoded) { 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;
} }
/** /**