Skip to content

Commit

Permalink
[java] Fix NPE in type resolution
Browse files Browse the repository at this point in the history
 - Fixes pmd#1532
  • Loading branch information
jsotuyod committed Apr 12, 2019
1 parent 595c440 commit 23185f9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1407,7 +1407,9 @@ private void populateType(TypeNode node, String className, int arrayDimens) {
}
} else {
JavaTypeDefinition def = JavaTypeDefinition.forClass(myType);
node.setTypeDefinition(def.withDimensions(arrayDimens));
if (def != null) {
node.setTypeDefinition(def.withDimensions(arrayDimens));
}
}
}

Expand Down

0 comments on commit 23185f9

Please sign in to comment.