summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-07-25 16:59:52 +0300
committerLeif Åstrand <leif@vaadin.com>2012-07-25 16:59:52 +0300
commit9ffa1495be501919b6a8b6cd4c8fa6a0689333e5 (patch)
tree62cfb6d3d740b0cbb0f394d8c23d06b5cbf2f140
parent5249ca7f8ae931aaaee2a6b5e9af9f0a1d349000 (diff)
downloadvaadin-framework-9ffa1495be501919b6a8b6cd4c8fa6a0689333e5.tar.gz
vaadin-framework-9ffa1495be501919b6a8b6cd4c8fa6a0689333e5.zip
Move null check before using variable
-rw-r--r--src/com/vaadin/terminal/gwt/widgetsetutils/RpcProxyCreatorGenerator.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/vaadin/terminal/gwt/widgetsetutils/RpcProxyCreatorGenerator.java b/src/com/vaadin/terminal/gwt/widgetsetutils/RpcProxyCreatorGenerator.java
index 040715fccf..2816d03400 100644
--- a/src/com/vaadin/terminal/gwt/widgetsetutils/RpcProxyCreatorGenerator.java
+++ b/src/com/vaadin/terminal/gwt/widgetsetutils/RpcProxyCreatorGenerator.java
@@ -31,13 +31,13 @@ public class RpcProxyCreatorGenerator extends Generator {
assert (typeOracle != null);
JClassType requestedType = typeOracle.findType(requestedClassName);
- String packageName = requestedType.getPackage().getName();
- String className = requestedType.getSimpleSourceName() + "Impl";
if (requestedType == null) {
logger.log(TreeLogger.ERROR, "Unable to find metadata for type '"
+ requestedClassName + "'", null);
throw new UnableToCompleteException();
}
+ String packageName = requestedType.getPackage().getName();
+ String className = requestedType.getSimpleSourceName() + "Impl";
createType(logger, ctx, packageName, className);
return packageName + "." + className;