forked from I2P_Developers/i2p.i2p
fix NPE
This commit is contained in:
@@ -306,6 +306,10 @@ public class TunnelRenderer {
|
|||||||
String lc = this.comm.getCountry(l);
|
String lc = this.comm.getCountry(l);
|
||||||
String rc = this.comm.getCountry(r);
|
String rc = this.comm.getCountry(r);
|
||||||
|
|
||||||
|
// make them non-null
|
||||||
|
lc = (lc == null) ? "zzzz" : lc;
|
||||||
|
rc = (rc == null) ? "zzzz" : rc;
|
||||||
|
|
||||||
// let String handle the rest
|
// let String handle the rest
|
||||||
return lc.compareTo(rc);
|
return lc.compareTo(rc);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user