Fix the build
Check for null before trying to make InetAddresses. Change-Id: I3228eea32eb455437dd76be2de56a913884f3f6e
This commit is contained in:
@@ -162,8 +162,8 @@ public class NetworkUtils {
|
|||||||
// TODO - do this for real, using a hidden method on InetAddress that aborts
|
// TODO - do this for real, using a hidden method on InetAddress that aborts
|
||||||
// instead of doing dns step
|
// instead of doing dns step
|
||||||
if (!InetAddress.isNumeric(addrString)) {
|
if (!InetAddress.isNumeric(addrString)) {
|
||||||
throw new IllegalArgumentException("numericToInetAddress with non numeric: " +
|
throw new IllegalArgumentException("numericToInetAddress with non numeric: '" +
|
||||||
addrString);
|
addrString + "'");
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
return InetAddress.getByName(addrString);
|
return InetAddress.getByName(addrString);
|
||||||
|
|||||||
Reference in New Issue
Block a user