alternative strategy for preventing NPE in #138
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user