Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347788 - SWT: Tables with less columns in the data than in the ScoutModel
Summary: SWT: Tables with less columns in the data than in the ScoutModel
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Scout (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-31 10:05 EDT by Matthias Zimmermann CLA
Modified: 2021-08-19 11:27 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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