<BUG>if (ifIndex == -1) return;OnmsSnmpInterface snmpIf = new OnmsSnmpInterface(ipAddr, new Integer(ifIndex), m_node);snmpIf.setIfAlias(m_collector.getIfAlias(ifIndex));</BUG><CONTEXT>if (m_collector == null || !m_collector.hasIpAddrTable() || !m_collector.hasIfTable()) return;String ipAddr = ipIf.getIpAddress();log().debug("Creating SNMP info for interface "+ipAddr);InetAddress inetAddr = ipIf.getInetAddress();int ifIndex = m_collector.getIfIndex(inetAddr);<extra_id_0>snmpIf.setIfName(m_collector.getIfName(ifIndex));snmpIf.setIfType(getIfType(ifIndex));</CONTEXT>
OnmsSnmpInterface snmpIf = m_node.getSnmpInterfaceWithIfIndex(ifIndex);if (snmpIf == null) {snmpIf.setIfAlias(m_collector.getIfAlias(ifIndex));