Skip to content

Commit

Permalink
fix: Prevent NPE in qute's AnnotationUtils.isMatchAnnotation
Browse files Browse the repository at this point in the history
Signed-off-by: Fred Bricon <[email protected]>
  • Loading branch information
fbricon authored and angelozerr committed May 16, 2023
1 parent 98a3901 commit 6dcb518
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ private static PsiAnnotation getAnnotation(String annotationName, PsiAnnotation[
* false otherwise.
*/
public static boolean isMatchAnnotation(PsiAnnotation annotation, String annotationName) {
if(annotation == null || annotation.getQualifiedName() == null){
return false;
}
// Annotation name is the fully qualified name of the annotation class (ex :
// org.eclipse.microprofile.config.inject.ConfigProperties)
// - when IAnnotation comes from binary, IAnnotation#getElementName() =
Expand Down

0 comments on commit 6dcb518

Please sign in to comment.