Skip to content

Commit 15c2f61

Browse files
author
emmanue1
committed
Fix error that occurs when the indexer indexes CLASS files without super class
1 parent 0101f57 commit 15c2f61

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

services/src/main/java/org/jd/gui/service/indexer/ClassFileIndexerProvider.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,10 @@ public ClassIndexer(
182182
public void visit(int version, int access, String name, String signature, String superName, String[] interfaces) {
183183
this.name = name;
184184
typeDeclarationSet.add(name);
185-
superTypeNameSet.add(superName);
185+
186+
if (superName != null) {
187+
superTypeNameSet.add(superName);
188+
}
186189

187190
if (interfaces != null) {
188191
for (int i=interfaces.length-1; i>=0; i--) {

0 commit comments

Comments
 (0)