fix NPE when enabling trace logging

This commit is contained in:
kimchy 2010-10-28 21:47:55 +02:00
parent 4579c04a9e
commit e31cbb5267
1 changed files with 1 additions and 0 deletions

View File

@ -88,6 +88,7 @@ public class SigarNetworkProbe extends AbstractComponent implements NetworkProbe
ifconfig = sigar.getNetInterfaceConfig(ifname);
} catch (SigarException e) {
sb.append(ifname + "\t" + "Not Avaialbe [" + e.getMessage() + "]");
continue;
}
long flags = ifconfig.getFlags();