mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-26 04:25:31 +01:00
Add NPE to the expected exceptions when trying to fetch a skin
This commit is contained in:
parent
d113d0602f
commit
2d14e83787
@ -132,7 +132,7 @@ private String readTextureInfoJson(JsonElement json) throws IOException {
|
||||
}
|
||||
|
||||
throw new IOException("No texture info found!");
|
||||
} catch (IllegalStateException | ClassCastException e) {
|
||||
} catch (NullPointerException | IllegalStateException | ClassCastException e) {
|
||||
throw new IOException(e);
|
||||
}
|
||||
|
||||
@ -144,7 +144,7 @@ private String readTextureUrl(JsonElement json) throws IOException {
|
||||
.getAsJsonObject("textures")
|
||||
.getAsJsonObject("SKIN")
|
||||
.get("url").getAsString();
|
||||
} catch (IllegalStateException | ClassCastException e) {
|
||||
} catch (NullPointerException | IllegalStateException | ClassCastException e) {
|
||||
throw new IOException(e);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user