]> source.dussan.org Git - vaadin-framework.git/commitdiff
Don't throw NPE when getting RPC for non-existing connector id
authorLeif Åstrand <leif@vaadin.com>
Tue, 17 Apr 2012 12:34:23 +0000 (15:34 +0300)
committerLeif Åstrand <leif@vaadin.com>
Tue, 17 Apr 2012 12:34:23 +0000 (15:34 +0300)
src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java

index d67ad36838c52b811eac8e87747be9d9558d91a6..bb6e726166eb57969b88a8144ae2af05a19544d4 100644 (file)
@@ -1553,6 +1553,15 @@ public abstract class AbstractCommunicationManager implements Serializable {
         Connector c = app.getConnector(invocation.getConnectorId());
         if (c instanceof RpcTarget) {
             ServerRpcManager.applyInvocation((RpcTarget) c, invocation);
+        } else if (c == null) {
+            logger.log(
+                    Level.WARNING,
+                    "RPC call " + invocation.getInterfaceName() + "."
+                            + invocation.getMethodName()
+                            + " received for connector id "
+                            + invocation.getConnectorId()
+                            + " but no such connector could be found");
+
         } else {
             logger.log(Level.WARNING, "RPC call received for connector "
                     + c.getClass().getName() + " (" + c.getConnectorId()