Fix NPE during dumpsys ethernet
am: 97446b8978
Change-Id: I374a91265660e814b4f0f033b3970fd98921ca84
This commit is contained in:
@@ -440,7 +440,12 @@ public class EthernetNetworkFactory extends NetworkFactory {
|
||||
NetworkInterfaceState ifaceState = mTrackingInterfaces.get(iface);
|
||||
pw.println(iface + ":" + ifaceState);
|
||||
pw.increaseIndent();
|
||||
ifaceState.mIpClient.dump(fd, pw, args);
|
||||
final IpClient ipClient = ifaceState.mIpClient;
|
||||
if (ipClient != null) {
|
||||
ipClient.dump(fd, pw, args);
|
||||
} else {
|
||||
pw.println("IpClient is null");
|
||||
}
|
||||
pw.decreaseIndent();
|
||||
}
|
||||
pw.decreaseIndent();
|
||||
|
||||
Reference in New Issue
Block a user