]> source.dussan.org Git - vaadin-framework.git/commitdiff
null check, don't fire tooltip action without the actual owner
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 6 Feb 2009 14:16:38 +0000 (14:16 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 6 Feb 2009 14:16:38 +0000 (14:16 +0000)
svn changeset:6753/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/ICaption.java

index 66d0789f2719e6435a620a8843510c5fe554209f..d5d86c20ddc805a697bf42e36bed618036bb8fc7 100644 (file)
@@ -214,7 +214,7 @@ public class ICaption extends HTML {
     public void onBrowserEvent(Event event) {
         super.onBrowserEvent(event);
         final Element target = DOM.eventGetTarget(event);
-        if (client != null && !DOM.compare(target, getElement())) {
+        if (client != null && owner != null && target != getElement()) {
             client.handleTooltipEvent(event, owner);
         }