Skip to content

Commit dd555b7

Browse files
committed
Check SslContextFactory, not SSLContext property
References #297
1 parent 0d1b5e0 commit dd555b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/rabbitmq/client/ConnectionFactory.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,8 @@ public void setUri(URI uri)
230230
// nothing special to do
231231
} else if ("amqps".equals(uri.getScheme().toLowerCase())) {
232232
setPort(DEFAULT_AMQP_OVER_SSL_PORT);
233-
// SSL context not set yet, we use the default one
234-
if (this.sslContext == null) {
233+
// SSL context factory not set yet, we use the default one
234+
if (this.sslContextFactory == null) {
235235
useSslProtocol();
236236
}
237237
} else {

0 commit comments

Comments
 (0)