mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-12-04 07:53:23 +01:00
nullcheck for texture decode
This commit is contained in:
parent
c9231fa07c
commit
1395c95b20
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user