summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2009-11-26 13:04:09 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2009-11-26 13:04:09 +0000
commit459cd623c8fe7c7e5b95a8ddbd0fe7ea1f2afbf6 (patch)
tree9ab11fbe4602605d28286679d7c2cd96f007b21f /src
parent0628210c09a84b8468548283aa7b2eaf382dce26 (diff)
downloadvaadin-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.java4
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);