Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322147 - NPE, IllegalAccess and/or ResourceException during hover on an annotation
Summary: NPE, IllegalAccess and/or ResourceException during hover on an annotation
Status: CLOSED FIXED
Alias: None
Product: Acceleo
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-09 10:59 EDT by Stephane Begaudeau CLA
Modified: 2011-10-12 05:19 EDT (History)
0 users

See Also:


Attachments
Patch v1.0 (4.14 KB, patch)
2010-08-19 04:06 EDT, Stephane Begaudeau CLA
mariot.chauvin: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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