mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-24 03:05:28 +01:00
Handle malformed skin URL looking
This commit is contained in:
parent
08d143ddcc
commit
9608ba1e2b
@ -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…
Reference in New Issue
Block a user