Author: konstantin.mishin
Date: 2010-05-04 13:46:18 -0400 (Tue, 04 May 2010)
New Revision: 16887
Modified:
branches/enterprise/3.3.X/ui/scrollableDataTable/src/main/java/org/richfaces/convert/selection/ClientSelectionConverter.java
Log:
RF-8632
Modified:
branches/enterprise/3.3.X/ui/scrollableDataTable/src/main/java/org/richfaces/convert/selection/ClientSelectionConverter.java
===================================================================
---
branches/enterprise/3.3.X/ui/scrollableDataTable/src/main/java/org/richfaces/convert/selection/ClientSelectionConverter.java 2010-05-04
15:54:02 UTC (rev 16886)
+++
branches/enterprise/3.3.X/ui/scrollableDataTable/src/main/java/org/richfaces/convert/selection/ClientSelectionConverter.java 2010-05-04
17:46:18 UTC (rev 16887)
@@ -91,9 +91,11 @@
}
String[] rows = selections[length-1].split("\\|");
clientSelection.setActiveRowIndex(Integer.parseInt(rows[0]));
- String shiftRowIndex = rows[1];
- if (shiftRowIndex.charAt(0) > '0') {
- clientSelection.setShiftRowIndex(Integer.parseInt(shiftRowIndex));
+ if (rows.length > 1) {
+ String shiftRowIndex = rows[1];
+ if (shiftRowIndex.charAt(0) > '0') {
+ clientSelection.setShiftRowIndex(Integer.parseInt(shiftRowIndex));
+ }
}
length--;
for (int i = 0; i < length; i++) {