Skip to content

Commit c091957

Browse files
committed
fix possible NPE
1 parent 3787346 commit c091957

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/com/meetup/memcached/MemcachedClient.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2220,7 +2220,8 @@ public void doMulti( boolean asString, Map<String, StringBuilder> sockKeys, Stri
22202220
// run through our conns and either return them to the pool
22212221
// or forcibly close them
22222222
try {
2223-
selector.close();
2223+
if ( selector != null )
2224+
selector.close();
22242225
}
22252226
catch ( IOException ignoreMe ) { }
22262227

0 commit comments

Comments
 (0)