From 161bf3db238a333e6073dde6e645b54191eaf073 Mon Sep 17 00:00:00 2001 From: Hannes Greule Date: Tue, 18 Feb 2020 18:49:50 +0100 Subject: [PATCH] Fix initialization of GlobalFlagContainer --- .../plotsquared/plot/flags/GlobalFlagContainer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/flags/GlobalFlagContainer.java b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/flags/GlobalFlagContainer.java index 9427df11c..83040722a 100644 --- a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/flags/GlobalFlagContainer.java +++ b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/flags/GlobalFlagContainer.java @@ -83,7 +83,7 @@ import java.util.Map; public final class GlobalFlagContainer extends FlagContainer { @Getter private static final GlobalFlagContainer instance = new GlobalFlagContainer(); - private static Map> stringClassMap = new HashMap<>(); + private static Map> stringClassMap; private GlobalFlagContainer() { super(null, (flag, type) -> { @@ -91,6 +91,7 @@ public final class GlobalFlagContainer extends FlagContainer { stringClassMap.put(flag.getName().toLowerCase(Locale.ENGLISH), flag.getClass()); } }); + stringClassMap = new HashMap<>(); // Register all default flags here // Boolean flags this.addFlag(ExplosionFlag.EXPLOSION_FALSE);