Pārlūkot izejas kodu

Fixed NPE when timer fires before updateFromUidl (#10400)

Change-Id: Ib4be170a2e824e9e9623160ed09f585c92295323
tags/7.0.0.beta11
Artur Signell pirms 11 gadiem
vecāks
revīzija
679b267197
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. 6
    0
      client/src/com/vaadin/client/ui/VUI.java

+ 6
- 0
client/src/com/vaadin/client/ui/VUI.java Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt