summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/terminal/gwt
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-06-06 08:12:01 +0000
committerLeif Åstrand <leif@vaadin.com>2012-06-06 08:12:01 +0000
commit948b55f86a4a7981ca576f6304820c644f418e61 (patch)
treeff9c4e02ca83c617ea529ba68d29050c7a46e381 /src/com/vaadin/terminal/gwt
parentf8cb0b8eefb3e3f173b4168782324c9e8887d8a7 (diff)
downloadvaadin-framework-948b55f86a4a7981ca576f6304820c644f418e61.tar.gz
vaadin-framework-948b55f86a4a7981ca576f6304820c644f418e61.zip
Avoid potential NPE discovered in review (#8914)
svn changeset:23889/svn branch:6.8
Diffstat (limited to 'src/com/vaadin/terminal/gwt')
-rw-r--r--src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java b/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java
index fe848e50f2..ae2cacdd38 100644
--- a/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java
+++ b/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java
@@ -1561,9 +1561,11 @@ public abstract class AbstractCommunicationManager implements
} catch (Exception e) {
String pid = variable[VAR_PID];
VariableOwner variableOwner = getVariableOwner(pid);
+ String targetType = variableOwner == null ? "unknown VariableOwner"
+ : variableOwner.getClass().getName();
throw new RuntimeException("Could not convert variable \""
- + variable[VAR_NAME] + "\" for "
- + variableOwner.getClass().getName() + " (" + pid + ")", e);
+ + variable[VAR_NAME] + "\" for " + targetType + " (" + pid
+ + ")", e);
}
}