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

Bug 312871

Summary: NPE in query GetAbstractMethodDeclarationText
Product: [Modeling] MoDisco Reporter: Nicolas Bros <nicolas.bros>
Component: InfrastructureAssignee: Nicolas Bros <nicolas.bros>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: gdupe, hugo.bruneliere, modisco.web-inbox
Version: 0.8.0Flags: nicolas.bros: helios+
hugo.bruneliere: review+
Target Milestone: 0.8.0   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
patch none

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.