Skip to content

Commit

Permalink
Fix NPE when looking for annotation in isHiddenImpl()
Browse files Browse the repository at this point in the history
Change-Id: Idaebcf456ffe06d0147436986975081bf1162699
  • Loading branch information
Maurice Chu committed Nov 6, 2012
1 parent eb9343e commit 5846022
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/com/google/doclava/ClassInfo.java
Expand Up @@ -1195,9 +1195,11 @@ public boolean isHiddenImpl() {
if (pkg != null && pkg.isHidden()) {
return true;
}
for (AnnotationInstanceInfo info : cl.annotations()) {
if (Doclava.showAnnotations.contains(info.type().qualifiedName())) {
return false;
if (cl.annotations() != null) {
for (AnnotationInstanceInfo info : cl.annotations()) {
if (Doclava.showAnnotations.contains(info.type().qualifiedName())) {
return false;
}
}
}
if (cl.comment().isHidden()) {
Expand Down

0 comments on commit 5846022

Please sign in to comment.