Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 322147

Summary: NPE, IllegalAccess and/or ResourceException during hover on an annotation
Product: [Modeling] Acceleo Reporter: Stephane Begaudeau <stephane.begaudeau>
Component: CoreAssignee: Project Inbox <acceleo-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch v1.0 mariot.chauvin: iplog+

Description Stephane Begaudeau CLA 2010-08-09 10:59:38 EDT
Build Identifier: 

In AcceleoHover#findAnnotations when we are getting the annotation model, it should be locked and synchronized like in AcceleoOccurrencesFinderJob#run ligne 151.

java.lang.NullPointerException
at org.eclipse.acceleo.internal.ide.ui.editors.template.AcceleoHover.findAnnotations(AcceleoHover.java:146)

And we should use MarkerUtilities, to access the data of a marker.
org.eclipse.core.internal.resources.ResourceException: Marker id 1674 not found.
at org.eclipse.core.internal.resources.Marker.checkInfo(Marker.java:56)
at org.eclipse.core.internal.resources.Marker.getAttribute(Marker.java:97)
at org.eclipse.acceleo.internal.ide.ui.editors.template.AcceleoHover.getHoverText(AcceleoHover.java:100)


Reproducible: Sometimes
Comment 1 Stephane Begaudeau CLA 2010-08-19 04:06:20 EDT
Created attachment 176966 [details]
Patch v1.0
Comment 2 Stephane Begaudeau CLA 2010-09-10 10:25:41 EDT
Contributed and available in Acceleo 3.0.1 RC4 and Acceleo 3.1.0 M2