TLS initialization fix
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / yang / gen / v1 / urn / opendaylight / params / xml / ns / yang / openflow / _switch / connection / provider / impl / rev140328 / SwitchConnectionProviderModule.java
index 45fed553f87e823a133190d95e19d45dac6b9dae..bf8c600f1ec689cefe24297f993390e7ef1cc8e8 100644 (file)
@@ -94,6 +94,9 @@ public final class SwitchConnectionProviderModule extends org.opendaylight.yang.
             }
             @Override
             public TlsConfiguration getTlsConfiguration() {
+                if (tlsConfig == null) {
+                    return null;
+                }
                 return new TlsConfiguration() {
                     @Override
                     public KeystoreType getTlsTruststoreType() {