diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-09-17 11:50:14 +0300 |
---|---|---|
committer | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-09-17 08:55:32 +0000 |
commit | a968da0682270ee5863240e1fc5782bbf749ce70 (patch) | |
tree | 34ae9163017459e4a153796e38e671f5e509f83a /client | |
parent | a2c008be78e12f6e2ee031d5363e696c48181e63 (diff) | |
download | vaadin-framework-a968da0682270ee5863240e1fc5782bbf749ce70.tar.gz vaadin-framework-a968da0682270ee5863240e1fc5782bbf749ce70.zip |
Fix Sidebar isOpen to not throw an exception (#18918)
Change-Id: I4a60e5a4d8939f996d72fe2234ea945e6afb5542
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/widgets/Grid.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/com/vaadin/client/widgets/Grid.java b/client/src/com/vaadin/client/widgets/Grid.java index 54d7f86e41..dbdcb2a07b 100644 --- a/client/src/com/vaadin/client/widgets/Grid.java +++ b/client/src/com/vaadin/client/widgets/Grid.java @@ -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 |