Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 312871 - NPE in query GetAbstractMethodDeclarationText
Summary: NPE in query GetAbstractMethodDeclarationText
Status: CLOSED FIXED
Alias: None
Product: MoDisco
Classification: Modeling
Component: Infrastructure (show other bugs)
Version: 0.8.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 0.8.0   Edit
Assignee: Nicolas Bros CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-14 04:29 EDT by Nicolas Bros CLA
Modified: 2010-10-04 13:01 EDT (History)
3 users (show)

See Also:
nicolas.bros: helios+
hugo.bruneliere: review+


Attachments
patch (42.85 KB, patch)
2010-05-14 05:23 EDT, Nicolas Bros CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Bros CLA 2010-05-14 04:29:56 EDT
java.lang.NullPointerException
at org.eclipse.gmt.modisco.java.queries.text.GetAbstractMethodDeclarationText.evaluate(GetAbstractMethodDeclarationText.java:35)
at org.eclipse.gmt.modisco.java.queries.text.GetAbstractMethodDeclarationText.evaluate(GetAbstractMethodDeclarationText.java:1)
at org.eclipse.gmt.modisco.infra.query.core.java.internal.JavaModelQueryAdapter.basicEvaluate(JavaModelQueryAdapter.java:43)
Comment 1 Nicolas Bros CLA 2010-05-14 05:23:37 EDT
Created attachment 168517 [details]
patch

This patch protects queries in org.eclipse.gmt.modisco.java.queries against NPEs.
Comment 2 Hugo Bruneliere CLA 2010-05-17 04:23:18 EDT
Hi Nicolas,

You can go ahead with this patch.

Best regards,

Hugo
Comment 3 Nicolas Bros CLA 2010-05-17 05:34:43 EDT
Thanks. I have applied the patch to branch 0_8_0.
Comment 4 Hugo Bruneliere CLA 2010-10-04 13:01:00 EDT
The patch has been successfully applied.