Browse Source

Fixed NPE when timer fires before updateFromUidl (#10400)

Change-Id: Ib4be170a2e824e9e9623160ed09f585c92295323
tags/7.0.0.beta11
Artur Signell 11 years ago
parent
commit
679b267197
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      client/src/com/vaadin/client/ui/VUI.java

+ 6
- 0
client/src/com/vaadin/client/ui/VUI.java View File

@@ -238,6 +238,12 @@ public class VUI extends SimplePanel implements ResizeHandler,
@Deprecated
protected void windowSizeMaybeChanged(int newWindowWidth,
int newWindowHeight) {
if (connection == null) {
// Connection is null if the timer fires before the first UIDL
// update
return;
}

boolean changed = false;
ComponentConnector connector = ConnectorMap.get(connection)
.getConnector(this);

Loading…
Cancel
Save