diff options
author | Leif Åstrand <leif@vaadin.com> | 2012-02-27 15:37:51 +0200 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2012-02-27 15:37:51 +0200 |
commit | cb9bb24ed90cb662cc07fb0f59e0807f735baed6 (patch) | |
tree | de8f8be58a0df2b0b34990d1a4bf26642471c1f0 | |
parent | 214e550064a94dd6edf1e51272bbfeacdb1f875c (diff) | |
download | vaadin-framework-cb9bb24ed90cb662cc07fb0f59e0807f735baed6.tar.gz vaadin-framework-cb9bb24ed90cb662cc07fb0f59e0807f735baed6.zip |
Check for the only likely null
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/VUIDLBrowser.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/VUIDLBrowser.java b/src/com/vaadin/terminal/gwt/client/VUIDLBrowser.java index e83cfcc4fe..eecd13b47b 100644 --- a/src/com/vaadin/terminal/gwt/client/VUIDLBrowser.java +++ b/src/com/vaadin/terminal/gwt/client/VUIDLBrowser.java @@ -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); |