We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ee2a46 commit a8a998aCopy full SHA for a8a998a
1 file changed
src/main/java/org/jruby/ext/openssl/SSLSocket.java
@@ -244,6 +244,7 @@ private SSLEngine ossl_ssl_setup(final ThreadContext context, final boolean serv
244
245
@JRubyMethod(name = "alpn_protocol")
246
public IRubyObject alpn_protocol(final ThreadContext context) {
247
+ if ( engine == null ) return context.nil;
248
final String protocol = engine.getApplicationProtocol();
249
// null if it has not yet been determined if alpn might be used for this connection,
250
// an empty String if application protocols values will not be used,
0 commit comments