Summary: | [Viewers] NPE in TreeViewer | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Dirk Baeumer <dirk_baeumer> |
Component: | SWT | Assignee: | Christophe Cornu <christophe.cornu+eclipse> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | blocker | ||
Priority: | P1 | CC: | christophe.cornu+eclipse |
Version: | 2.1 | ||
Target Milestone: | 2.1 RC2 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Dirk Baeumer
2003-03-05 09:26:48 EST
I don't see how this can happen, since AbstractTreeViewer.internalCollectExpanded just iterates over the items obtained from SWT, passing some of them to getExpanded. Unless Tree.getItems() gets a null in it. I'm wondering if it's a JIT bug. We've seen one recently on IBM 1.3.1 SR2, which was causing an NPE in the Tasks view (this happened in SR1 as well, but apparently more frequently in SR2). Which VM are you using, and have you recently changed? Actually, the presence of line numbers in the stack trace suggests it's not a JIT problem. Christophe, do you think this could be caused by bug 32734? I guess not since the stacks appear different, and 32734 was fixed for I20030304. Dirk, a reproduceable case here would really help. The VM I am using java version "1.4.1_01" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01) Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode) Not a duplicate of bug 32734 - which causes a NPE inside SWT It would be really interesting to have a reproduceable case and verify Tree.getItems return a null element. This could be a variant of bug 4434. Bug 4434 causes an internal call to SWT Tree.getItems to return an array with a null item. Veronika mentioned that SWT has fixed a similar problem in the variables view. This was in the variables view too. Fixed. Not in time for RC2. |