Skip to content

Commit ee0e5f1

Browse files
committed
ZBLOG-1812 Socket.io crash during handshake (error handler called in exception handler expects connections.get(urlStr) to return a non-null value).
1 parent 8e8e694 commit ee0e5f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/io/socket/IOConnection.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ private void cleanup() {
432432
sockets.clear();
433433
synchronized (connections) {
434434
List<IOConnection> con = connections.get(urlStr);
435-
if (con.size() > 1)
435+
if (con != null && con.size() > 1)
436436
con.remove(this);
437437
else
438438
connections.remove(urlStr);

0 commit comments

Comments
 (0)