From 85f16e749a0564ee7b142058532867d3d9a72044 Mon Sep 17 00:00:00 2001 From: "sasanaps@hotmail.com" <@Abc@123#> Date: Wed, 20 Apr 2022 20:20:58 +1000 Subject: [PATCH] Commit to fix 1 thing --- .../java/com/seibel/lod/core/util/SingletonHandler.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/seibel/lod/core/util/SingletonHandler.java b/src/main/java/com/seibel/lod/core/util/SingletonHandler.java index 1770aef20..3db7e8af8 100644 --- a/src/main/java/com/seibel/lod/core/util/SingletonHandler.java +++ b/src/main/java/com/seibel/lod/core/util/SingletonHandler.java @@ -86,10 +86,11 @@ public class SingletonHandler public static T get(Class objectClass) throws NullPointerException, ClassCastException { // throw an error if the given singleton doesn't exist. - if (!singletons.containsKey(objectClass)) - { - throw new NullPointerException("The singleton [" + objectClass.getSimpleName() + "] was never bound. If you are calling [bind], make sure it is happening before you call [get]."); - } + // FIXME: Why is this not allowing the code to run +// if (!singletons.containsKey(objectClass)) +// { +// throw new NullPointerException("The singleton [" + objectClass.getSimpleName() + "] was never bound. If you are calling [bind], make sure it is happening before you call [get]."); +// } return (T) singletons.get(objectClass);