]> source.dussan.org Git - vaadin-framework.git/commitdiff
Check for the only likely null
authorLeif Åstrand <leif@vaadin.com>
Mon, 27 Feb 2012 13:37:51 +0000 (15:37 +0200)
committerLeif Åstrand <leif@vaadin.com>
Mon, 27 Feb 2012 13:37:51 +0000 (15:37 +0200)
src/com/vaadin/terminal/gwt/client/VUIDLBrowser.java

index e83cfcc4fe00740aed54282a387a6302a1915347..eecd13b47b71d37ca303c75dda0405d0112463e1 100644 (file)
@@ -242,8 +242,8 @@ public class VUIDLBrowser extends SimpleTree {
     }
 
     static void highlight(VPaintableWidget paintable) {
-        Widget w = paintable.getWidgetForPaintable();
-        if (w != null) {
+        if (paintable != null) {
+            Widget w = paintable.getWidgetForPaintable();
             Style style = highlight.getStyle();
             style.setTop(w.getAbsoluteTop(), Unit.PX);
             style.setLeft(w.getAbsoluteLeft(), Unit.PX);