From f40f3877fb364a3fe10ae994a993cac8274dca5c Mon Sep 17 00:00:00 2001 From: jdramaix Date: Fri, 7 Jun 2013 15:33:24 +0200 Subject: [PATCH] fix issue 178 --- .../google/gwt/query/client/plugins/events/EventsListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/EventsListener.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/EventsListener.java index 5fbe5544..f348adaf 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/EventsListener.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/EventsListener.java @@ -552,7 +552,7 @@ public class EventsListener implements EventListener { for (int i = 0, l = elementEvents.length(); i < l; i++) { BindFunction listener = elementEvents.get(i); - if (listener.hasEventType(etype) + if (listener != null && listener.hasEventType(etype) && (originalEventType == null || originalEventType .equals(listener.getOriginalEventType()))) { if (!listener.fire(event)) { -- 2.39.5