Bug 9031 - NPE in AbstractMethodDeclaration.compilationResult during search
Summary: NPE in AbstractMethodDeclaration.compilationResult during search
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows NT
: P1 normal (vote)
Target Milestone: 2.0 M3   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-04 10:13 EST by Knut Radloff CLA
Modified: 2002-02-07 12:26 EST (History)
0 users

See Also:


Attachments
NPE in AbstractMethodDeclaration.compilationResult (1.97 KB, text/plain)
2002-02-04 10:15 EST, Knut Radloff CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Knut Radloff CLA 2002-02-04 10:13:29 EST
20020129

When I search for references in workspace to 
org.eclipse.jface.preference.PreferenceDialog.close() I get a 
NullPointerException in 
org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.compilationResul
t
I'm going to upload the workspace to walleye 
as /va2000/INCOMING/forKnut/<bugnumber>.zip
Comment 1 Knut Radloff CLA 2002-02-04 10:15:21 EST
Created attachment 297 [details]
NPE in AbstractMethodDeclaration.compilationResult
Comment 2 Jerome Lanneluc CLA 2002-02-07 12:26:23 EST
We were trying to report a warning during parsing. To achieve this, we were 
trying to get a compilation result from the reference context. Unfortunately, 
the scope of the reference context (a method declaration) is null until we 
start resolving.

Fixed by passing the compilation result to the nonExternalizedStringLiteral
(...) method.