Merge pull request #20 from Joe0/issue19

Fix for NPE caused by blocking connections
This commit is contained in:
CodeForFame 2011-11-03 21:07:44 -07:00
commit 63bda8b6a8
1 changed files with 5 additions and 0 deletions

View File

@ -72,6 +72,11 @@ public class ConnectionFilter extends BlacklistFilter {
final Integer val;
synchronized (connections) {
val = connections.get(host);
// Prevents NPE caused by blocking connections
if (val == null) {
return;
}
if (val == 1) {
connections.remove(host);
} else {