Merge remote-tracking branch 'origin/feature/master' into feature/master

This commit is contained in:
Bella 2020-01-13 22:03:44 -05:00
commit df4a3b5b82
1 changed files with 5 additions and 1 deletions

View File

@ -119,7 +119,11 @@ public class ModuleManager {
public static Module getModuleByName(String name) {
return modules.get(lookup.get(name.toLowerCase()));
Integer index = lookup.get(name.toLowerCase());
if (index == null) {
throw new IllegalArgumentException("getModuleByName() failed. Are you calling this too early? Is the module spelled correctly? Please check!!!!");
}
return modules.get(index);
}
public static boolean isModuleEnabled(String moduleName) {