]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix for NPE in debug window in IE (#12015)
authorArtur Signell <artur@vaadin.com>
Thu, 6 Jun 2013 20:46:34 +0000 (23:46 +0300)
committerVaadin Code Review <review@vaadin.com>
Fri, 7 Jun 2013 06:38:20 +0000 (06:38 +0000)
Change-Id: I74fb57d60f1cdaf85aaacff36093f9f3d640d538

client/src/com/vaadin/client/debug/internal/LogSection.java

index 74ac3641c288cb0d928929f87a54dedefc86f6de..1e7524b56dd10b010f27ecafce66170cc5c26536 100644 (file)
@@ -153,11 +153,11 @@ public class LogSection implements Section {
                         .as(event.getNativeEvent().getEventTarget());
                 while (!el.getClassName().contains(
                         VDebugWindow.STYLENAME + "-message")) {
-                    el = el.getParentElement();
                     if (el == contentElement) {
                         // clicked something else
                         return;
                     }
+                    el = el.getParentElement();
                 }
                 selectText(el);
             }