am 2140d1de
: Merge "Avoid system_server crashing due to mac address is null"
* commit '2140d1de47579db839b6a4ccc87394e80449d7a6': Avoid system_server crashing due to mac address is null
This commit is contained in:
@ -53,9 +53,11 @@ public class ArpPeer {
|
|||||||
mInterfaceName = interfaceName;
|
mInterfaceName = interfaceName;
|
||||||
mMyAddr = myAddr;
|
mMyAddr = myAddr;
|
||||||
|
|
||||||
for (int i = 0; i < MAC_ADDR_LENGTH; i++) {
|
if (mac != null) {
|
||||||
mMyMac[i] = (byte) Integer.parseInt(mac.substring(
|
for (int i = 0; i < MAC_ADDR_LENGTH; i++) {
|
||||||
i*3, (i*3) + 2), 16);
|
mMyMac[i] = (byte) Integer.parseInt(mac.substring(
|
||||||
|
i*3, (i*3) + 2), 16);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (myAddr instanceof Inet6Address || peer instanceof Inet6Address) {
|
if (myAddr instanceof Inet6Address || peer instanceof Inet6Address) {
|
||||||
|
Reference in New Issue
Block a user