]> source.dussan.org Git - vaadin-framework.git/commitdiff
Avoid potential NPE discovered in review (#8914)
authorLeif Åstrand <leif@vaadin.com>
Wed, 6 Jun 2012 08:12:01 +0000 (08:12 +0000)
committerLeif Åstrand <leif@vaadin.com>
Wed, 6 Jun 2012 08:12:01 +0000 (08:12 +0000)
svn changeset:23889/svn branch:6.8

src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java

index fe848e50f2b2175141619b448619749c3c96092f..ae2cacdd38b2c7413ac8fff3d2803a98a198cd0d 100644 (file)
@@ -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);
         }
     }