Fix the build.
Change-Id: I71d1d9958182966d2eff0d34fa05ac57f2cabc48
This commit is contained in:
parent
86a570287f
commit
3dba435361
1 changed files with 1 additions and 1 deletions
|
|
@ -267,7 +267,7 @@ public class NetworkUtils {
|
|||
String result = null;
|
||||
for (int i = 0; i < 4; i++) {
|
||||
try {
|
||||
if (octets[i].length > 3) return addr;
|
||||
if (octets[i].length() > 3) return addr;
|
||||
builder.append(Integer.parseInt(octets[i]));
|
||||
} catch (NumberFormatException e) {
|
||||
return addr;
|
||||
|
|
|
|||
Loading…
Reference in a new issue