]> source.dussan.org Git - vaadin-framework.git/commitdiff
Ensure event listener is a widget before casting #13130
authorJohn Ahlroos <john@vaadin.com>
Tue, 31 Dec 2013 07:49:44 +0000 (09:49 +0200)
committerVaadin Code Review <review@vaadin.com>
Tue, 7 Jan 2014 13:04:01 +0000 (13:04 +0000)
Change-Id: I7f106356116d73eebbfeeee52d61d8d7a7117b3e

client/src/com/vaadin/client/Util.java

index 89726702320223c16a549e43972205d7d7cd2c5a..55d3d13c19f2de2ade6feb05fc7ca0f352fa3ab5 100644 (file)
@@ -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