aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Ahlroos <john@vaadin.com>2013-12-05 10:42:05 +0200
committerJohn Ahlroos <john@vaadin.com>2013-12-05 10:53:03 +0200
commite5e6f4386cdfee43ec3c24ba8edba620ae2dbf20 (patch)
tree0f90eeab01225e1fc39bf939e351a84406c5ae9f
parentbfc1d191d33db8cf9567e93470806bb7cc7b9464 (diff)
downloadvaadin-framework-e5e6f4386cdfee43ec3c24ba8edba620ae2dbf20.tar.gz
vaadin-framework-e5e6f4386cdfee43ec3c24ba8edba620ae2dbf20.zip
Fixed ArrayIndexOutOfBoundsException introduced in #12645
Change-Id: I482a7e97b9aacc4b05c9869577d466ee9047af38
-rw-r--r--client/src/com/vaadin/client/ui/grid/Escalator.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/com/vaadin/client/ui/grid/Escalator.java b/client/src/com/vaadin/client/ui/grid/Escalator.java
index 1b7dbf51a4..6ecb07ca06 100644
--- a/client/src/com/vaadin/client/ui/grid/Escalator.java
+++ b/client/src/com/vaadin/client/ui/grid/Escalator.java
@@ -2849,7 +2849,7 @@ public class Escalator extends Widget {
}
int[] getCalculatedColumnWidths() {
- if (widthsArray == null) {
+ if (widthsArray == null || widthsArray.length != getColumnCount()) {
widthsArray = new int[getColumnCount()];
for (int i = 0; i < columns.size(); i++) {
widthsArray[i] = columns.get(i).getCalculatedWidth();