]> source.dussan.org Git - vaadin-framework.git/commitdiff
Don't throw NPE if no connector is found (warning is logged later)
authorLeif Åstrand <leif@vaadin.com>
Tue, 24 Apr 2012 13:09:11 +0000 (16:09 +0300)
committerLeif Åstrand <leif@vaadin.com>
Tue, 24 Apr 2012 13:09:11 +0000 (16:09 +0300)
src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java

index e772aec6cc24b3a86b5b74cd435b94966e57623a..a1a917130f02407225c9fc07af84c0dba1a1e451 100644 (file)
@@ -1400,7 +1400,7 @@ public abstract class AbstractCommunicationManager implements Serializable {
                 final ClientConnector connector = getConnector(app,
                         invocation.getConnectorId());
 
-                if (connector.isConnectorEnabled()) {
+                if (connector != null && connector.isConnectorEnabled()) {
                     enabledConnectors.add(connector);
                 }
             }