Skip to content

Commit dc3a412

Browse files
committed
Adding nullpointer check.
1 parent 593adcd commit dc3a412

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
@@ -416,7 +416,7 @@ private void cleanup() {
416416
sockets.clear();
417417
synchronized (connections) {
418418
List<IOConnection> con = connections.get(urlStr);
419-
if (con.size() > 1)
419+
if (con != null && con.size() > 1)
420420
con.remove(this);
421421
else
422422
connections.remove(urlStr);

0 commit comments

Comments
 (0)