alternative strategy for preventing NPE in #138

This commit is contained in:
Andy Clement
2016-01-18 23:21:09 -08:00
parent fe7eb32524
commit cc8958e6af
2 changed files with 4 additions and 5 deletions

View File

@@ -823,6 +823,10 @@ public class TypeRegistry {
if (GlobalConfiguration.verboseMode && log.isLoggable(Level.FINER)) {
log.finer("entering TypeRegistry.isReloadableTypeName(" + slashedName + ")");
}
if (slashedName == null) {
return ReloadableTypeNameDecision.No;
}
if (GlobalConfiguration.assertsMode) {
Utils.assertSlashed(slashedName);
}

View File

@@ -122,11 +122,6 @@ public class SpringLoadedPreProcessor implements Constants {
return bytes;
}
if (slashedClassName == null && bytes != null) {
// The lambda meta factory can spin up classes that come through here with no class name specified
slashedClassName = Utils.discoverClassname(bytes);
}
// TODO need configurable debug here, ability to dump any code before/after
for (Plugin plugin : getGlobalPlugins()) {
if (plugin instanceof LoadtimeInstrumentationPlugin) {