]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixed npe (invalid rendered table) on reload
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Wed, 27 Aug 2008 08:31:34 +0000 (08:31 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Wed, 27 Aug 2008 08:31:34 +0000 (08:31 +0000)
svn changeset:5274/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java

index cac39dd929263b0816741938675df5b4703a3f8d..8dd88b4c7bf3b7371e185608f615e037a5459f0e 100644 (file)
@@ -170,7 +170,7 @@ public class IScrollTable extends Composite implements Table, ScrollListener,
         }
         firstvisible = uidl.hasVariable("firstvisible") ? uidl
                 .getIntVariable("firstvisible") : 0;
-        if (firstvisible != lastRequestedFirstvisible) {
+        if (firstvisible != lastRequestedFirstvisible && tBody != null) {
             // received 'surprising' firstvisible from server: scroll there
             firstRowInViewPort = firstvisible;
             bodyContainer