Community
Participate
Working Groups
Build Identifier: I20100608-0911 java.lang.NullPointerException at org.eclipse.jpt.core.internal.resource.java.source.AnnotationContainerTools.getNestedAstAnnotations(AnnotationContainerTools.java:139) at org.eclipse.jpt.core.internal.resource.java.source.AnnotationContainerTools.synchronize(AnnotationContainerTools.java:240) at org.eclipse.jpt.core.internal.resource.java.source.SourceBaseNamedQueryAnnotation.synchronizeWith(SourceBaseNamedQueryAnnotation.java:74) at org.eclipse.jpt.core.internal.resource.java.source.AnnotationContainerTools.synchronize(AnnotationContainerTools.java:247) at org.eclipse.jpt.core.internal.resource.java.source.SourceNamedQueriesAnnotation.synchronizeWith(SourceNamedQueriesAnnotation.java:52) at org.eclipse.jpt.core.internal.resource.java.source.SourcePersistentMember.addOrSyncAnnotation_(SourcePersistentMember.java:349) Reproducible: Always Steps to Reproduce: The NPE appears for code @NamedQueries(@NamedQuer)
Created attachment 177232 [details] proposed patch for 2.3 maintenance A simple null check and a test case specific to NamedQueries annotation
fixed for 2.3.2