We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07b8d48 commit 9d8be5dCopy full SHA for 9d8be5d
1 file changed
core/src/main/java/org/jruby/util/io/SelectExecutor.java
@@ -186,7 +186,7 @@ IRubyObject selectInternal(ThreadContext context) throws IOException {
186
(unselectableWriteFDs != null && unselectableWriteFDs.contains(fptr.fd()))) {
187
188
// ensure any pending connections get finished
189
- if (writeKeyList.get(i).isConnectable()) {
+ if (writeKeyList != null && writeKeyList.get(i).isConnectable()) {
190
if (fptr.fd().ch instanceof SocketChannel sock) {
191
sock.finishConnect();
192
}
0 commit comments