Build: #161 was successful Changes by Florian Schmaus

Stages & jobs

  1. Default Stage

  2. Deploy

Build result summary


8 minutes
9be498c440e2b10cae4d01b4d0037bfdb90c85cf 9be498c440e2b10cae4d01b4d0037bfdb90c85cf
Total tests
Successful since
#158 ()


Code commits

Author Commit Message Commit date
Florian Schmaus Florian Schmaus 9be498c440e2b10cae4d01b4d0037bfdb90c85cf 9be498c440e2b10cae4d01b4d0037bfdb90c85cf Fix NPE in Roster's presence listeners if 'from' is not set
The NPE is caused by an inbound presence stanza without the 'from'
attribute set. The stacktrace of the NPE is:

FATAL EXCEPTION: Smack Cached Executor
Process:, PID: 13365
java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Object.hashCode()' on a null object reference
    at java.util.concurrent.ConcurrentHashMap.get(
    at org.jivesoftware.smack.roster.Roster.getPresencesInternal(
    at org.jivesoftware.smack.roster.Roster.getOrCreatePresencesInternal(
    at org.jivesoftware.smack.roster.Roster.access$1100(
    at org.jivesoftware.smack.roster.Roster$PresencePacketListener$
    at org.jivesoftware.smack.AsyncButOrdered$
    at java.util.concurrent.ThreadPoolExecutor.runWorker(
    at java.util.concurrent.ThreadPoolExecutor$

Thanks to Marcel Heckel for reporting this.

Fixes SMACK-861.
Florian Schmaus Florian Schmaus 25b3f354216683e568a54b93be1c6a931cd79b26 25b3f354216683e568a54b93be1c6a931cd79b26 Ensure that shutdown() terminates reader/writer threads
In case an exception happens in connect()/login() the
'disconnectedButResumable' boolean may (still) be set. Which causes
only one of the reader and writer threads to exit, typically the
reader thread, because shutdown() will bail out very early. This
leaves a dangling (writer) thread causing memory leaks and deadlocks
on a subsequent connect()/login().
Florian Schmaus Florian Schmaus 5d46e281fcbd60f34bd96ccbe36faa8072d39354 5d46e281fcbd60f34bd96ccbe36faa8072d39354 XMPPTCPConnection log when reader/writer threads start and exit

Jira issues

Unknown Issue TypeSMACK-861Could not obtain issue details from Jira

Shared artifacts

Artifact File size
Project binary files 806 MB