From: Artur Signell Date: Tue, 15 Jan 2013 20:17:00 +0000 (+0200) Subject: Added check for RPC calls to non-existing connectors (#10743) X-Git-Tag: 7.0.0.rc1~1^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ee4defc0a6483762b8cde5291bf4844983728604;p=vaadin-framework.git Added check for RPC calls to non-existing connectors (#10743) Change-Id: I55432d1736e8585d3c0680ea888eb1cb94f7d371 --- diff --git a/server/src/com/vaadin/server/AbstractCommunicationManager.java b/server/src/com/vaadin/server/AbstractCommunicationManager.java index cfd7bbeecb..c676cb2ce3 100644 --- a/server/src/com/vaadin/server/AbstractCommunicationManager.java +++ b/server/src/com/vaadin/server/AbstractCommunicationManager.java @@ -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)) {