diff --git a/core/java/src/net/i2p/client/I2PSessionImpl.java b/core/java/src/net/i2p/client/I2PSessionImpl.java index 9943d16ec..4b65d422b 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 dac914d64..4f15c16ff 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);