Skip to content

Commit

Permalink
Merge pull request #226 from Ladicek/fix-npe
Browse files Browse the repository at this point in the history
Fix NPE in type variable propagation
  • Loading branch information
Ladicek authored Jun 23, 2022
2 parents 8738046 + 95927c4 commit f5279ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/main/java/org/jboss/jandex/Indexer.java
Original file line number Diff line number Diff line change
Expand Up @@ -2668,7 +2668,9 @@ private String getTypeVariableIdentifier(Type typeVariable) {

private void propagateTypeVariables() {
for (ClassInfo clazz : classes.values()) {
clazz.setSuperClassType(propagateTypeVariables(clazz.superClassType(), clazz));
if (clazz.superClassType() != null) {
clazz.setSuperClassType(propagateTypeVariables(clazz.superClassType(), clazz));
}

Type[] interfaces = clazz.interfaceTypeArray();
for (int i = 0; i < interfaces.length; i++) {
Expand Down

0 comments on commit f5279ac

Please # to comment.