Null columns in getNotCollapsedColumns() method of WebAbstractTable. #PL-1979

This commit is contained in:
Konstantin Krivopustov 2013-06-10 08:09:33 +00:00
parent 86cb8af47e
commit 5ee5344cc8

View File

@ -1426,6 +1426,9 @@ public abstract class WebAbstractTable<T extends com.vaadin.ui.Table>
@Override
public List<Table.Column> getNotCollapsedColumns() {
if (component.getVisibleColumns() == null)
return Collections.emptyList();
final List<Table.Column> visibleColumns = new ArrayList<>(component.getVisibleColumns().length);
Object[] keys = component.getVisibleColumns();
for (final Object key : keys) {