fix NPE when enabling trace logging
This commit is contained in:
parent
4579c04a9e
commit
e31cbb5267
|
@ -88,6 +88,7 @@ public class SigarNetworkProbe extends AbstractComponent implements NetworkProbe
|
||||||
ifconfig = sigar.getNetInterfaceConfig(ifname);
|
ifconfig = sigar.getNetInterfaceConfig(ifname);
|
||||||
} catch (SigarException e) {
|
} catch (SigarException e) {
|
||||||
sb.append(ifname + "\t" + "Not Avaialbe [" + e.getMessage() + "]");
|
sb.append(ifname + "\t" + "Not Avaialbe [" + e.getMessage() + "]");
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
long flags = ifconfig.getFlags();
|
long flags = ifconfig.getFlags();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue