From a968da0682270ee5863240e1fc5782bbf749ce70 Mon Sep 17 00:00:00 2001 From: Teemu Suo-Anttila Date: Thu, 17 Sep 2015 11:50:14 +0300 Subject: Fix Sidebar isOpen to not throw an exception (#18918) Change-Id: I4a60e5a4d8939f996d72fe2234ea945e6afb5542 --- client/src/com/vaadin/client/widgets/Grid.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client') 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 extends ResizeComposite implements * @return true if open, false if not */ public boolean isOpen() { - return content.getParent() == rootContainer; + return content != null && content.getParent() == rootContainer; } @Override -- cgit v1.2.3