Merge branch 'master' into feature/master

This commit is contained in:
Bella Who 2020-01-13 21:07:40 -05:00 committed by GitHub
commit f9fbfb244a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) {