avoid runtime exception by earlier testing for seed.ip=null

pull/12/head
reger 9 years ago
parent 0f80bc8309
commit f7b0b3b7b3

@ -1379,11 +1379,11 @@ public final class Protocol {
boolean gzipBody, boolean gzipBody,
final int timeout) { final int timeout) {
String ip = targetSeed.getIP(); String ip = targetSeed.getIP();
final String address = targetSeed.getPublicAddress(ip); if ( ip == null ) {
if ( address == null ) {
Network.log.warn("no address for transferRWI"); Network.log.warn("no address for transferRWI");
return null; return null;
} }
final String address = targetSeed.getPublicAddress(ip);
// prepare post values // prepare post values
final String salt = crypt.randomSalt(); final String salt = crypt.randomSalt();

Loading…
Cancel
Save