fix early NPE

This commit is contained in:
zzz
2015-02-08 00:42:43 +00:00
parent 201afc823e
commit 7f9c565cd7

View File

@@ -163,7 +163,7 @@ public class Banlist {
_log.error("wtf, why did we try to banlist null?", new Exception("banfaced"));
return false;
}
if (_context.routerHash().equals(peer)) {
if (peer.equals(_context.routerHash())) {
_log.error("wtf, why did we try to banlist ourselves?", new Exception("banfaced"));
return false;
}