Handle malformed skin URL looking
This commit is contained in:
parent
08d143ddcc
commit
9608ba1e2b
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);
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue