[SNMP4J] Exception when closing snmp on 1.7RC1
Matthieu Casanova
chocolat.mou at gmail.com
Fri Mar 10 17:26:16 CET 2006
Hi, I closed my snmp object and got this exception
java.lang.NullPointerException
at org.snmp4j.transport.DefaultUdpTransportMapping.close(
DefaultUdpTransportMapping.java:93)
at org.snmp4j.Snmp.close(Snmp.java:428)
I'm not sure but maybe during DefaultUdpTransportMapping.close, just after
the test
if (listener != null)
the run method finished and put listener = null (this listener = null; was
added in 1.7rc1) breaking the close method.
So is it a bug or is it because I forgot something ?
Matthieu
More information about the SNMP4J
mailing list