From db4dba4b43f6dde1a17804409d34248bd8698a2e Mon Sep 17 00:00:00 2001 From: John Ahlroos Date: Tue, 31 Dec 2013 09:49:44 +0200 Subject: [PATCH] Ensure event listener is a widget before casting #13130 Change-Id: I7f106356116d73eebbfeeee52d61d8d7a7117b3e --- client/src/com/vaadin/client/Util.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/com/vaadin/client/Util.java b/client/src/com/vaadin/client/Util.java index 8972670232..55d3d13c19 100644 --- a/client/src/com/vaadin/client/Util.java +++ b/client/src/com/vaadin/client/Util.java @@ -866,7 +866,7 @@ public class Util { element = (Element) element.getParentElement(); } } - if (eventListener != null) { + if (eventListener instanceof Widget) { /* * Then find the first widget of type class1 from widget * hierarchy -- 2.39.5