diff --git a/core/java/src/net/i2p/client/I2PSessionImpl.java b/core/java/src/net/i2p/client/I2PSessionImpl.java index 9943d16ec9ee00ad1074e543ef00243314ceec3d..4b65d422b0dcac6452b5619f1794410b31d7f4a7 100644 --- a/core/java/src/net/i2p/client/I2PSessionImpl.java +++ b/core/java/src/net/i2p/client/I2PSessionImpl.java @@ -659,7 +659,9 @@ abstract class I2PSessionImpl implements I2PSession, I2CPMessageReader.I2CPMessa propogateError("Error destroying the session", ipe); } } - _availabilityNotifier.stopNotifying(); + // SimpleSession does not initialize + if (_availabilityNotifier != null) + _availabilityNotifier.stopNotifying(); _closed = true; _closing = false; closeSocket(); diff --git a/core/java/src/net/i2p/client/I2PSimpleSession.java b/core/java/src/net/i2p/client/I2PSimpleSession.java index dac914d6464d259640e26fa4366d2cb02d89e459..4f15c16ff787784d80fe5da2a7f1c18894c163f6 100644 --- a/core/java/src/net/i2p/client/I2PSimpleSession.java +++ b/core/java/src/net/i2p/client/I2PSimpleSession.java @@ -47,6 +47,7 @@ class I2PSimpleSession extends I2PSessionImpl2 { * @throws I2PSessionException if there is a problem */ public I2PSimpleSession(I2PAppContext context, Properties options) throws I2PSessionException { + // Warning, does not call super() _context = context; _log = context.logManager().getLog(I2PSimpleSession.class); _handlerMap = new SimpleMessageHandlerMap(context);