Fix for NPE caused by blocking connections

closes #19
This commit is contained in:
Joe0 2011-10-31 15:26:15 -05:00
parent c8312b5298
commit f896f2df65
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 {