Fix NPE during dumpsys ethernet
am: aea0136d01
Change-Id: Iaba04ea0a6ffc07a289b93cc3bf2192fcf9fb1c2
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