Summary: | [content assist] NPE in CompletionProposalPopup | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Kevin Barnes <cocoakevin> |
Component: | SWT | Assignee: | Billy Biggs <billy.biggs> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | major | ||
Priority: | P1 | CC: | andre_weinand, steve_northover, veronika_irvine |
Version: | 3.1 | ||
Target Milestone: | 3.1 M7 | ||
Hardware: | Macintosh | ||
OS: | All | ||
Whiteboard: |
Description
Kevin Barnes
2005-04-14 17:07:36 EDT
And what build are you using today ;-) Any steps? Where did you invoke code assist? builds I20050414-1107 and I20050413-0910 code assist in any source viewer a few times and an error dialog will popup with the message "The command for the key you pressed failed." The NPE will be logged and code assist won't work in that viewer again until you reopen it. With "source viewer" you mean Java editor, right? yes. I should also note that I don't get the NPE on windows. . *** Bug 91576 has been marked as a duplicate of this bug. *** I'm also getting this same error but it not limited to Java editors. I am seeing the same error on other editors supporting completion. OSX 10.3.9 Version: 3.1.0 Build id: I20050414-1107 The NPE happens when accessing an array element of the current ICompletionProposals. All array elements are guaranteed to be non-null. Since this only happens on the Mac, I suspect a platform-specific vm (JIT?) bug. Can you report the VMs you are using? Are there any alternative VMs you could try, or a way to selectively disable jitting for that class (org.eclipse.jface.text.contentassist.CompletionProposalPopup)? Not sure what to here if this is really a VM bug (rearrange code?). Will check with Andre. The implementation of Table.setItemCount() is wrong on Mac: it fails to initilialize the Table's internal array of TableItems ("items"), with new TableItems if the table is expanded. As a consequence Table.getItems() returns an array full of NULLs, which the CompletionProposalPopup does not expect. Moving to SWT. Fixed in HEAD. |