Skip to content

Commit

Permalink
Merge pull request #1002 from garcia-jj/ot-ag-avoidnpeatinterceptorve…
Browse files Browse the repository at this point in the history
…rifier

Adding a null check to avoid NPE at CustomAcceptsVerifier
  • Loading branch information
Turini committed Aug 15, 2015
2 parents d61a977 + 54e6280 commit 390487d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ private static Predicate<Annotation> acceptsConstraintMatcher() {
return new Predicate<Annotation>() {
@Override
public boolean apply(Annotation element) {
return element.annotationType().isAnnotationPresent(AcceptsConstraint.class);
return element != null && element.annotationType().isAnnotationPresent(AcceptsConstraint.class);
}
};
}
Expand Down

0 comments on commit 390487d

Please sign in to comment.