Smack 4.0.2 Bug report involving OfflineMessageManager.getMessages()

This method always return empty instance of List. I debugged few lines of the method, then found that it will be ok if only get the two lines


PacketCollector messageCollector = connection.createPacketCollector(packetFilter);"


"PacketCollector messageCollector = connection.createPacketCollector(packetFilter);


Means just get these two lines reversed, offline messages will be returned.

Thanks for reporting SMACK-592

Fixed in 4.0.3-SNAPSHOT which is deployed to sonatype and available as aSmack snapshot.