From 2d14e837878e2d3f106c30354bca680db9f7efcc Mon Sep 17 00:00:00 2001 From: "Blue (Lukas Rieger)" Date: Tue, 15 Sep 2020 16:04:10 +0200 Subject: [PATCH] Add NPE to the expected exceptions when trying to fetch a skin --- .../bluecolored/bluemap/common/plugin/skins/PlayerSkin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BlueMapCommon/src/main/java/de/bluecolored/bluemap/common/plugin/skins/PlayerSkin.java b/BlueMapCommon/src/main/java/de/bluecolored/bluemap/common/plugin/skins/PlayerSkin.java index 52412125..386f47d0 100644 --- a/BlueMapCommon/src/main/java/de/bluecolored/bluemap/common/plugin/skins/PlayerSkin.java +++ b/BlueMapCommon/src/main/java/de/bluecolored/bluemap/common/plugin/skins/PlayerSkin.java @@ -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); } }