Skip to content
Snippets Groups Projects
Commit 8ea966b3 authored by srosse's avatar srosse
Browse files

OO-1893: check the boundaries of the list of columns to prevent exception

parent 499ae4b1
No related branches found
No related tags found
No related merge requests found
...@@ -186,7 +186,10 @@ public class Table extends AbstractComponent { ...@@ -186,7 +186,10 @@ public class Table extends AbstractComponent {
* @return Column descriptor of currently sorted column * @return Column descriptor of currently sorted column
*/ */
protected ColumnDescriptor getCurrentlySortedColumnDescriptor() { protected ColumnDescriptor getCurrentlySortedColumnDescriptor() {
return getColumnDescriptor(sortColumn); if(columnOrder.size() >= 0 && sortColumn < columnOrder.size()) {
return getColumnDescriptor(sortColumn);
}
return null;
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment