Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 580698

Summary: [HierarchicalTreeLayer] click on non-collapsible row throws exception
Product: [Technology] NatTable Reporter: Dirk Fauth <dirk.fauth>
Component: GlazedLists ExtensionAssignee: Dirk Fauth <dirk.fauth>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0.3   
Target Milestone: 2.0.4   
Hardware: PC   
OS: Windows 10   
See Also: https://git.eclipse.org/r/c/nattable/org.eclipse.nebula.widgets.nattable/+/195623
https://git.eclipse.org/c/nattable/org.eclipse.nebula.widgets.nattable.git/commit/?id=435ca394098c5543a7449391da712473c5b34c64
Whiteboard:

Description Dirk Fauth CLA 2022-09-07 07:42:54 EDT
If you have an item that has only one or no children, a expand/collapse handle is not shown. This is correct as the row/level is not collapsible. But if you click in the area where the icon would be, the expand icon shows up. If you click again an exception is thrown.

In the _6044_HierarchicalTreeLayerGridExample, the McLaren row has no handle to expand/collapse as there is only one child. But if you click at the position where the button could be, it appears and if you click again, an exception is thrown. The same is true for the second items in the second level of Mercedes and BMW. There is no expand/collapse handle visible as these items do not have children, but a click in the empty space leads to the described error.
Comment 1 Eclipse Genie CLA 2022-09-07 07:46:21 EDT
New Gerrit change created: https://git.eclipse.org/r/c/nattable/org.eclipse.nebula.widgets.nattable/+/195623
Comment 3 Dirk Fauth CLA 2022-12-14 15:00:00 EST
Released with 2.0.4