Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkmoore2010-08-23 17:07:51 +0000
committerkmoore2010-08-23 17:07:51 +0000
commit5efe124b3997bc992419ffe24c812deb04e8f328 (patch)
treeee47176742dc3fa518e8a88579ab8303e080d593 /jpa/plugins
parentc6157db37e3da23320e3d5bad580a2867c492d05 (diff)
downloadwebtools.dali-5efe124b3997bc992419ffe24c812deb04e8f328.tar.gz
webtools.dali-5efe124b3997bc992419ffe24c812deb04e8f328.tar.xz
webtools.dali-5efe124b3997bc992419ffe24c812deb04e8f328.zip
323005 - NPE in AnnotationContainerTools with invalid nested annotation name
Diffstat (limited to 'jpa/plugins')
-rw-r--r--jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/resource/java/source/AnnotationContainerTools.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/resource/java/source/AnnotationContainerTools.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/resource/java/source/AnnotationContainerTools.java
index 2510e2128a..b3ddfd6fd8 100644
--- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/resource/java/source/AnnotationContainerTools.java
+++ b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/resource/java/source/AnnotationContainerTools.java
@@ -136,7 +136,7 @@ public final class AnnotationContainerTools {
private static <T extends NestableAnnotation> ArrayList<Annotation> getNestedAstAnnotations(CompilationUnit astRoot, AnnotationContainer<T> annotationContainer) {
ArrayList<Annotation> result = new ArrayList<Annotation>();
Annotation astContainerAnnotation = annotationContainer.getAstAnnotation(astRoot);
- if (astContainerAnnotation.isMarkerAnnotation()) {
+ if (astContainerAnnotation == null || astContainerAnnotation.isMarkerAnnotation()) {
// no nested annotations
}
else if (astContainerAnnotation.isSingleMemberAnnotation()) {

Back to the top