]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix assertion error when column widths are calculated
authorArtur Signell <artur@vaadin.com>
Fri, 16 Sep 2016 19:21:11 +0000 (22:21 +0300)
committerVaadin Code Review <review@vaadin.com>
Tue, 20 Sep 2016 06:03:15 +0000 (06:03 +0000)
Change-Id: I042a5bfb548b52911100e01e5a74901a1abfbf33

client/src/main/java/com/vaadin/client/widgets/Grid.java

index e55940582bcd548a72ebfb96f59d77943ae73015..2b117dc8e43287ba4eceb9989fc784c520e3741b 100644 (file)
@@ -3214,7 +3214,8 @@ public class Grid<T> extends ResizeComposite implements
         private void calculate() {
             isScheduled = false;
             rescheduleCount = 0;
-            assert !dataIsBeingFetched : "Trying to calculate column widths even though data is still being fetched.";
+            assert !(currentDataAvailable.isEmpty()
+                    && dataIsBeingFetched) : "Trying to calculate column widths without data while data is still being fetched.";
 
             if (columnsAreGuaranteedToBeWiderThanGrid()) {
                 applyColumnWidths();