Fix the build.

Change-Id: I71d1d9958182966d2eff0d34fa05ac57f2cabc48
This commit is contained in:
Robert Greenwalt
2011-12-07 13:10:59 -08:00
parent 86a570287f
commit 3dba435361

View File

@@ -267,7 +267,7 @@ public class NetworkUtils {
String result = null; String result = null;
for (int i = 0; i < 4; i++) { for (int i = 0; i < 4; i++) {
try { try {
if (octets[i].length > 3) return addr; if (octets[i].length() > 3) return addr;
builder.append(Integer.parseInt(octets[i])); builder.append(Integer.parseInt(octets[i]));
} catch (NumberFormatException e) { } catch (NumberFormatException e) {
return addr; return addr;