Catch NullPointerException in AnnotationHandling