Try to avoid infinite loop

Issue: http://jira.grails.org/browse/GRAILS-9647
This commit is contained in:
Andy Clement
2012-12-10 10:37:00 -08:00
parent 2fe68af988
commit 57a72c8b7e

View File

@@ -47,7 +47,9 @@ public abstract class MethodProvider {
TypeRegistry tr = registry;
while (rtype == null) {
ClassLoader pcl = tr.getClassLoader().getParent();
if (pcl != null) {
if (pcl == null) {
break;
} else {
tr = TypeRegistry.getTypeRegistryFor(pcl);
if (tr == null) {
break;