Step 1. Setup
XMPPConnection.addPacketListener() for Message
new MultiUserChat() for XMPPConnection
Step 2. Disconnect
Step 3. Repeat Step 1.
I get a NullPointerException in line 84:
because in ServiceDiscoveryManager, Map<XMPPConnection, ServiceDiscoveryManager> instances is null for the new XMPPConnection,
because in XMPPConnection, we have:
private final static Set<ConnectionCreationListener> connectionEstablishedListeners =
Shouldn't this be non-static so that each XMPPConnection will have its own set of ConnectionCreationListeners?
I think the code is too dependent on static members.