Summary: | [Viewers] Null argument in call hierarchy view | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Wassim Melhem <wassim.melhem> |
Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> |
Status: | RESOLVED INVALID | QA Contact: | |
Severity: | normal | ||
Priority: | P2 | CC: | dirk_baeumer, eclipse, markus.kell.r |
Version: | 3.0 | Keywords: | needinfo |
Target Milestone: | 3.0 M5 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Wassim Melhem
2003-10-21 02:27:59 EDT
The NPE happens in JFace. Appears to be due to the input having null elements. The following test program shows the same failure: public static void main(String[] args) { Display display = new Display (); Shell shell = new Shell(display); TableViewer viewer = new TableViewer(shell, SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI | SWT.FULL_SELECTION); viewer.setContentProvider(new ArrayContentProvider()); viewer.setLabelProvider(new LabelProvider()); viewer.setInput(new Object[3]); viewer.setInput(new Object[0]); shell.open(); while (!shell.isDisposed ()) { if (!display.readAndDispatch ()) display.sleep (); } display.dispose (); } I'm adding various null checks in the viewers implementation to catch these earlier. The JDT team should look at how this can happen in the call hierarchy. Jesper, can you please have a look how this can happen in the call hierarchy view. Nick, can you please assign the PR to JDT/UI if you are done. Viewer changes released. Moving to JDT UI. N200310310010 / M4 I have not been able to reproduce the problem, neither with the latest nightly build nor with M4. I'd really like other examples of problems of this kind if possible. We were not able to reproduce the problem. Setting status to remind. I have been having a pretty pleasant experience using this view recently. So maybe it was just a transient problem. As of now 'LATER' and 'REMIND' resolutions are no longer supported. Please reopen this bug if it is still valid for you. |