[SNMP4J] Why does org.snmp4j.smi.Null.java:getInt( ) return the syntax
David Goodenough
david.goodenough at linkchoose.co.uk
Thu Aug 10 16:38:21 CEST 2006
If no value is returned for an OID (so a Null object is used) if you ask it
for its integer value rather than getting an exception you get the number
5. This is the value of the syntax for a null value, and seems rather
unrelated to the "nullness" of the object. Surely the value should be 0 or
an exception should be thrown. The syntax of the object is of course
already available through the method getSyntax. The same applies to toLong.
David
More information about the SNMP4J
mailing list