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

Bug 580072

Summary: RowIdHideShowLayer causes NPE when combined with SummaryRowLayer
Product: [Technology] NatTable Reporter: Dirk Fauth <dirk.fauth>
Component: CoreAssignee: Dirk Fauth <dirk.fauth>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0.2   
Target Milestone: 2.0.3   
Hardware: PC   
OS: Windows 10   
See Also: https://git.eclipse.org/r/c/nattable/org.eclipse.nebula.widgets.nattable/+/193924
https://git.eclipse.org/c/nattable/org.eclipse.nebula.widgets.nattable.git/commit/?id=cd7b01258cdd4db372369cb919e0e87d011a380d
Whiteboard:

Description Dirk Fauth CLA 2022-06-03 01:08:06 EDT
As reported in Stackoverflow a NullPointerException is thrown if a SummaryRowLayer is added to the body layer stack below the RowIdHideShowLayer. This is due to the fact that a null check is missing for the retrieved rowObject. This will be null for the summary row, as the summary row is not a data row.
Comment 1 Eclipse Genie CLA 2022-06-03 01:11:26 EDT
New Gerrit change created: https://git.eclipse.org/r/c/nattable/org.eclipse.nebula.widgets.nattable/+/193924
Comment 3 Dirk Fauth CLA 2022-06-03 01:27:48 EDT
Fixed by adding a null check
Comment 4 Dirk Fauth CLA 2022-08-09 02:29:31 EDT
Released with 2.0.3