From d7894eb847e0d00ed360c224f0d6f41639f5d906 Mon Sep 17 00:00:00 2001 From: Jeremy Wood Date: Wed, 30 Jan 2019 10:11:43 -0500 Subject: [PATCH] Fix another NPE in MaterialConverter. --- .../onarandombox/MultiverseCore/utils/MaterialConverter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/onarandombox/MultiverseCore/utils/MaterialConverter.java b/src/main/java/com/onarandombox/MultiverseCore/utils/MaterialConverter.java index 01675845..0fd19457 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/utils/MaterialConverter.java +++ b/src/main/java/com/onarandombox/MultiverseCore/utils/MaterialConverter.java @@ -36,7 +36,7 @@ public class MaterialConverter { if (mapping != null) { return Material.matchMaterial(mapping.getFlatteningType()); } else { - return Material.matchMaterial(value); + return Material.matchMaterial(value != null ? value : ""); } } }