Handle malformed skin URL looking
This commit is contained in:
parent
a70d091d9a
commit
b89ed740e6
1 changed files with 2 additions and 0 deletions
|
|
@ -569,6 +569,8 @@ public abstract class BukkitVersionHelperGeneric extends BukkitVersionHelper {
|
||||||
String json = new String(Base64Coder.decode(val), Charsets.UTF_8);
|
String json = new String(Base64Coder.decode(val), Charsets.UTF_8);
|
||||||
result = gson.fromJson(json, TexturesPayload.class);
|
result = gson.fromJson(json, TexturesPayload.class);
|
||||||
} catch (JsonParseException e) {
|
} 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"))) {
|
if ((result != null) && (result.textures != null) && (result.textures.containsKey("SKIN"))) {
|
||||||
url = result.textures.get("SKIN").url;
|
url = result.textures.get("SKIN").url;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue