XMPPConnection.createPacketCollector throws NullPointerException when disconnected

I think a connection status verification should be made on XMPPConnection.createPacketCollector, to prevent a NullPointerException to be thrown when packetReader is null, i.e. when disconnect has been called.

I’m running into this as well. Is anyone looking into this?