Add NPE to the expected exceptions when trying to fetch a skin

This commit is contained in:
Blue (Lukas Rieger) 2020-09-15 16:04:10 +02:00
parent d113d0602f
commit 2d14e83787

View File

@ -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);
}
}