diff options
author | Matti Tahvonen <matti.tahvonen@itmill.com> | 2009-11-26 13:04:09 +0000 |
---|---|---|
committer | Matti Tahvonen <matti.tahvonen@itmill.com> | 2009-11-26 13:04:09 +0000 |
commit | 459cd623c8fe7c7e5b95a8ddbd0fe7ea1f2afbf6 (patch) | |
tree | 9ab11fbe4602605d28286679d7c2cd96f007b21f /src | |
parent | 0628210c09a84b8468548283aa7b2eaf382dce26 (diff) | |
download | vaadin-framework-459cd623c8fe7c7e5b95a8ddbd0fe7ea1f2afbf6.tar.gz vaadin-framework-459cd623c8fe7c7e5b95a8ddbd0fe7ea1f2afbf6.zip |
added null check
svn changeset:10074/svn branch:6.2
Diffstat (limited to 'src')
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/VCaption.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/VCaption.java b/src/com/vaadin/terminal/gwt/client/VCaption.java index ba57956c27..72d29071cd 100644 --- a/src/com/vaadin/terminal/gwt/client/VCaption.java +++ b/src/com/vaadin/terminal/gwt/client/VCaption.java @@ -52,7 +52,9 @@ public class VCaption extends HTML { this.client = client; owner = component; - setOwnerPid(getElement(), client.getPid(owner)); + if (client != null && owner != null) { + setOwnerPid(getElement(), client.getPid(owner)); + } setStyleName(CLASSNAME); sinkEvents(VTooltip.TOOLTIP_EVENTS); |