The leave() method in GroupChat does not require (or allow wrapping in a try { groupChat.leave(); } catch (XMPPException e) { do something } wrapper.
However, it occasionally happens that leave()-ing a group chat, when the client is no longer connected to the server, will definitely cause an exception, which percolates up and causes a problem.
So, would it be possible to either (1) catch and handle the exception generated when leave() is called and the client is in an improper state, or (2) make the user handle the XMPPException himself?
I’‘m sorry that I don’'t have the stacktrace here, as this happened at home, and I am at the office now. If I see it again, I will post it here. But it really does happen. Honest! ^^