mirror of
https://github.com/moparisthebest/MoparClassic
synced 2024-11-13 20:55:05 -05:00
Merge pull request #20 from Joe0/issue19
Fix for NPE caused by blocking connections
This commit is contained in:
commit
63bda8b6a8
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user