From: jdramaix Date: Fri, 7 Jun 2013 13:33:24 +0000 (+0200) Subject: fix issue 178 X-Git-Tag: release-1.4.0~43^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f40f3877fb364a3fe10ae994a993cac8274dca5c;p=gwtquery.git fix issue 178 --- 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)) {