Handle malformed skin URL looking

This commit is contained in:
Mike Primm 2020-07-12 19:20:53 -05:00
parent 08d143ddcc
commit 9608ba1e2b

View File

@ -569,6 +569,8 @@ public abstract class BukkitVersionHelperGeneric extends BukkitVersionHelper {
String json = new String(Base64Coder.decode(val), Charsets.UTF_8);
result = gson.fromJson(json, TexturesPayload.class);
} catch (JsonParseException e) {
} catch (IllegalArgumentException x) {
Log.warning("Malformed response from skin URL check: " + val);
}
if ((result != null) && (result.textures != null) && (result.textures.containsKey("SKIN"))) {
url = result.textures.get("SKIN").url;