Przeglądaj źródła

Fix Sidebar isOpen to not throw an exception (#18918)

Change-Id: I4a60e5a4d8939f996d72fe2234ea945e6afb5542
tags/7.6.0.alpha6
Teemu Suo-Anttila 8 lat temu
rodzic
commit
a968da0682
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      client/src/com/vaadin/client/widgets/Grid.java

+ 1
- 1
client/src/com/vaadin/client/widgets/Grid.java Wyświetl plik

@@ -3742,7 +3742,7 @@ public class Grid<T> extends ResizeComposite implements
* @return <code>true</code> if open, <code>false</code> if not
*/
public boolean isOpen() {
return content.getParent() == rootContainer;
return content != null && content.getParent() == rootContainer;
}

@Override

Ładowanie…
Anuluj
Zapisz