1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-06-16 16:44:48 +02:00
Smack/smack-tcp/src/main/java/org/jivesoftware/smack/tcp
Florian Schmaus 6d7f3904d9 Throw NotConnectedException on login()
if connect() was not previously called. Previously calling login() with
arguments would not check for the preconditions.

The check to throw needs to be performed in AbstractXMPPConnection
before every 'abstract login(Non)Anonymously()' call. That's the two
lines that check the preconditions are duplicated.

Also fix NPE in
XMPPTCPConnection.throwNotConnectedExceptionIfAppropriate() when
packetWrite is null (i.e. if the connection was never connected before).
2015-01-17 17:53:36 +01:00
..
sm Rework XMPP Error class design 2014-11-25 13:19:32 +01:00
TCPInitializer.java Enable OSGi compliance via 'DynamicImport-Package: *' 2015-01-03 13:14:02 +01:00
XMPPTCPConnection.java Throw NotConnectedException on login() 2015-01-17 17:53:36 +01:00
XMPPTCPConnectionConfiguration.java Add javadoc to XMPPTCPConnectionConfiguration 2015-01-17 10:34:37 +01:00