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,
final int timeout) {
String ip = targetSeed.getIP();
final String address = targetSeed.getPublicAddress(ip);
if ( address == null ) {
if ( ip == null ) {
Network.log.warn("no address for transferRWI");
return null;
}
final String address = targetSeed.getPublicAddress(ip);
// prepare post values
final String salt = crypt.randomSalt();

Loading…
Cancel
Save