[SNMP4J] Mistake at methode getTargetAddress(OctetString name) of SNMPTargetMIB
Nídia S. Campos
nidiascampos at gmail.com
Fri May 19 13:51:19 CEST 2006
Hi!
I think there is a mistake into getTargetAddress(OctetString name) of
SNMPTargetMIB code. Logically, it does not return the address because it
does not have the key-word "return" when the entry row is not null. Take a
look it at line 6 from the code below:
1 public Address getTargetAddress(OctetString name) {
2 OID index = MOTableIndex.createSubIndex(name, true);
3 SnmpTargetAddrEntryRow trow =
4 (SnmpTargetAddrEntryRow) this.snmpTargetAddrEntryModel.getRow
(index);
5 if (trow != null) {
6 trow.getAddress();
7 }
8 return null;
9 }
Best Regards,
Nídia
More information about the SNMP4J
mailing list