NPE guard for JVMPlugin.accept
Issue: http://jira.grails.org/browse/GRAILS-9651
This commit is contained in:
@@ -157,10 +157,12 @@ public class JVMPlugin implements ReloadEventProcessorPlugin, LoadtimeInstrument
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean accept(String slashedTypeName, ClassLoader classLoader, ProtectionDomain protectionDomain, byte[] bytes) {
|
public boolean accept(String slashedTypeName, ClassLoader classLoader, ProtectionDomain protectionDomain, byte[] bytes) {
|
||||||
if (slashedTypeName.equals("java/beans/Introspector")) {
|
if (slashedTypeName!=null) {
|
||||||
introspectorLoaded = true;
|
if (slashedTypeName.equals("java/beans/Introspector")) {
|
||||||
} else if (slashedTypeName.equals("java/beans/ThreadGroupContext")) {
|
introspectorLoaded = true;
|
||||||
threadGroupContextLoaded = true;
|
} else if (slashedTypeName.equals("java/beans/ThreadGroupContext")) {
|
||||||
|
threadGroupContextLoaded = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user