GRAILS-10134 fix
This commit is contained in:
@@ -1820,7 +1820,12 @@ public class TypeRegistry {
|
||||
}
|
||||
|
||||
public TypeRegistry getParentRegistry() {
|
||||
return TypeRegistry.getTypeRegistryFor(classLoader.get().getParent());
|
||||
ClassLoader cl = classLoader.get();
|
||||
if (cl == null) { // GRAILS-10134
|
||||
return null;
|
||||
} else {
|
||||
return TypeRegistry.getTypeRegistryFor(cl.getParent());
|
||||
}
|
||||
}
|
||||
|
||||
public ReloadableType[] getReloadableTypes() {
|
||||
|
||||
Reference in New Issue
Block a user