Bug 79182 - NPE while invoking code assist
Summary: NPE while invoking code assist
Status: VERIFIED DUPLICATE of bug 78801
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M4   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-22 09:05 EST by Christof Marti CLA
Modified: 2004-12-14 11:15 EST (History)
0 users

See Also:


Attachments
CU in which the NPE occured (3.33 KB, text/plain)
2004-11-22 09:08 EST, Christof Marti CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christof Marti CLA 2004-11-22 09:05:56 EST
I200411170800 + ZRH plug-in export from 20041118_1124

Occured while invoking code assist in the CU I will attach:

java.lang.NullPointerException
        at java.lang.String.<init>(String.java:166)
        at org.eclipse.jdt.internal.codeassist.InternalCompletionProposal.findMe
thodParameterNames(InternalCompletionProposal.java:185)
        at org.eclipse.jdt.core.CompletionProposal.findParameterNames(Completion
Proposal.java:1197)
        at org.eclipse.jdt.internal.codeassist.CompletionRequestorWrapper.accept
(CompletionRequestorWrapper.java:223)
        at org.eclipse.jdt.internal.codeassist.CompletionEngine.findConstructors
(CompletionEngine.java:1367)
        at org.eclipse.jdt.internal.codeassist.CompletionEngine.findAnonymousTyp
e(CompletionEngine.java:1175)
        at org.eclipse.jdt.internal.codeassist.CompletionEngine.complete(Complet
ionEngine.java:706)
        at org.eclipse.jdt.internal.codeassist.CompletionEngine.complete(Complet
ionEngine.java:1060)
        at org.eclipse.jdt.internal.core.Openable.codeComplete(Openable.java:119
)
        at org.eclipse.jdt.internal.core.CompilationUnit.codeComplete(Compilatio
nUnit.java:287)
        at org.eclipse.jdt.internal.core.CompilationUnit.codeComplete(Compilatio
nUnit.java:202)
        at org.eclipse.jdt.internal.core.CompilationUnit.codeComplete(Compilatio
nUnit.java:192)
        at org.eclipse.jdt.internal.ui.text.java.JavaCompletionProcessor.interna
lComputeCompletionProposals(JavaCompletionProcessor.java:358)
        at org.eclipse.jdt.internal.ui.text.java.JavaCompletionProcessor.compute
CompletionProposals(JavaCompletionProcessor.java:332)
        at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompleti
onProposals(ContentAssistant.java:1470)
        at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeP
roposals(CompletionProposalPopup.java:250)
        at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$7
(CompletionProposalPopup.java:247)
        at org.eclipse.jface.text.contentassist.CompletionProposalPopup$9.run(Co
mpletionProposalPopup.java:960)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)

        at org.eclipse.jface.text.contentassist.CompletionProposalPopup.incremen
talComplete(CompletionProposalPopup.java:955)
        at org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCom
pletions(ContentAssistant.java:1318)
        at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor$AdaptedS
ourceViewer.doOperation(CompilationUnitEditor.java:182)
        at org.eclipse.ui.texteditor.ContentAssistAction$1.run(ContentAssistActi
on.java:82)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)

        at org.eclipse.ui.texteditor.ContentAssistAction.run(ContentAssistAction
.java:80)
        at org.eclipse.jface.action.Action.runWithEvent(Action.java:989)
        at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:188)

        at org.eclipse.ui.internal.commands.Command.execute(Command.java:130)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(Workben
chKeyboard.java:445)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboar
d.java:724)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(Workbe
nchKeyboard.java:767)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindi
ngs(WorkbenchKeyboard.java:536)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$2(WorkbenchKeyb
oard.java:479)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard$1.handleEvent(Workbenc
hKeyboard.java:221)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
        at org.eclipse.swt.widgets.Display.filterEvent(Display.java:752)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:817)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:827)
        at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:855)
        at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:851)
        at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1193)
        at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3037)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:2947)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:3370)
        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1514)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2446)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1573)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1544)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.jav
a:279)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144)
        at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:10
2)
        at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformAct
ivator.java:220)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja
va:273)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja
va:129)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
        at org.eclipse.core.launcher.Main.run(Main.java:710)
        at org.eclipse.core.launcher.Main.main(Main.java:694)
Comment 1 Christof Marti CLA 2004-11-22 09:08:33 EST
Created attachment 16040 [details]
CU in which the NPE occured

I did:
- place caret at the end of line 80 (1-based)
- press ctrl-space
-> NPE

Closing and reopening the CU did not help.
Comment 2 David Audel CLA 2004-11-23 10:10:29 EST

*** This bug has been marked as a duplicate of 78801 ***
Comment 3 Frederic Fusier CLA 2004-12-14 11:14:52 EST
Verified for 3.1 M4 using build I200412140800.