Guard against null in #visitInnerClass
Issue: SPR-8358,SPR-8186
This commit is contained in:
parent
95b1dbadb0
commit
4a6101a697
|
|
@ -80,9 +80,9 @@ class ClassMetadataReadingVisitor implements ClassVisitor, ClassMetadata {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void visitInnerClass(String name, String outerName, String innerName, int access) {
|
public void visitInnerClass(String name, String outerName, String innerName, int access) {
|
||||||
|
if (outerName != null) {
|
||||||
String fqName = ClassUtils.convertResourcePathToClassName(name);
|
String fqName = ClassUtils.convertResourcePathToClassName(name);
|
||||||
String fqOuterName = ClassUtils.convertResourcePathToClassName(outerName);
|
String fqOuterName = ClassUtils.convertResourcePathToClassName(outerName);
|
||||||
if (outerName != null) {
|
|
||||||
if (this.className.equals(fqName)) {
|
if (this.className.equals(fqName)) {
|
||||||
this.enclosingClassName = fqOuterName;
|
this.enclosingClassName = fqOuterName;
|
||||||
this.independentInnerClass = ((access & Opcodes.ACC_STATIC) != 0);
|
this.independentInnerClass = ((access & Opcodes.ACC_STATIC) != 0);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue