]> source.dussan.org Git - vaadin-framework.git/commitdiff
Added check for RPC calls to non-existing connectors (#10743) 56/656/2
authorArtur Signell <artur@vaadin.com>
Tue, 15 Jan 2013 20:17:00 +0000 (22:17 +0200)
committerArtur Signell <artur@vaadin.com>
Tue, 15 Jan 2013 20:43:21 +0000 (22:43 +0200)
Change-Id: I55432d1736e8585d3c0680ea888eb1cb94f7d371

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

index cfd7bbeecb6248824c3e7ac3d8b739acb070ea59..c676cb2ce38983181f936a690041c7b906928441 100644 (file)
@@ -1631,6 +1631,15 @@ public abstract class AbstractCommunicationManager implements Serializable {
 
                 final ClientConnector connector = getConnector(uI,
                         invocation.getConnectorId());
+                if (connector == null) {
+                    getLogger()
+                            .log(Level.WARNING,
+                                    "Received RPC call for unknown connector with id {0} (tried to invoke {1}.{2})",
+                                    new Object[] { invocation.getConnectorId(),
+                                            invocation.getInterfaceName(),
+                                            invocation.getMethodName() });
+                    continue;
+                }
 
                 if (!enabledConnectors.contains(connector)) {