Procházet zdrojové kódy

Fixed NPE when timer fires before updateFromUidl (#10400)

Change-Id: Ib4be170a2e824e9e9623160ed09f585c92295323
tags/7.0.0.beta11
Artur Signell před 11 roky
rodič
revize
679b267197
1 změnil soubory, kde provedl 6 přidání a 0 odebrání
  1. 6
    0
      client/src/com/vaadin/client/ui/VUI.java

+ 6
- 0
client/src/com/vaadin/client/ui/VUI.java Zobrazit soubor

@@ -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);

Načítá se…
Zrušit
Uložit