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

Bug 347788

Summary: SWT: Tables with less columns in the data than in the ScoutModel
Product: z_Archived Reporter: Matthias Zimmermann <zimmermann>
Component: ScoutAssignee: Project Inbox <scout.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Matthias Zimmermann CLA 2011-05-31 10:05:29 EDT
NullpointerException in SWTScoutTableModel.getBackground.

@Andy: Its the same problem that we've discussed. Cell content is null

It seems that there are two possibilities:
1) constructor of org.eclipse.scout.rt.client.ui.basic.table.TableRow is responsible that m_cells instanciates the number of columns that is passed via the columnset (as in the constructor using values)

2) the access of getCell(element, columnIndex) on SwtScoutTableModel validates that it doesn't return null
Comment 1 Matthias Zimmermann CLA 2011-05-31 10:06:23 EDT
fixed on 3.5.11, #101520
both proposals implemented
Comment 2 Matthias Zimmermann CLA 2011-06-28 09:13:00 EDT
shipped with eclipse scout 3.7.0