NP-fix, which was found on a Pi under 'havy' load

pull/1/head
sixcooler 11 years ago
parent a9ed28c0b5
commit f0587d4af5

@ -97,7 +97,7 @@ abstract public class AbstractRemoteHandler extends AbstractHandler implements H
}
InetAddress resolvedIP = Domains.dnsResolve(hostOnly); // during testing isLocal() failed to resolve domain against publicIP
if (sb.myPublicIP().equals(resolvedIP.getHostAddress())) {
if (resolvedIP != null && sb.myPublicIP().equals(resolvedIP.getHostAddress())) {
localVirtualHostNames.add(resolvedIP.getHostName()); // remember resolved hostname
//localVirtualHostNames.add(resolved.getHostAddress()); // might change ?
return;

Loading…
Cancel
Save