Skip to content

Commit

Permalink
[sinttest] prevent NullPointerException in RosterIntegrationTest
Browse files Browse the repository at this point in the history
When listening for a presence stanza, assuming that every stanza will have a 'status' can cause NullPointerExceptions to be logged. This commit prevents that.
  • Loading branch information
guusdk committed May 10, 2024
1 parent e79429e commit 51cd3f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ public void testCurrentPresenceSentAfterSubscriptionApproval() throws Exception
final SimpleResultSyncPoint received = new SimpleResultSyncPoint();
final StanzaListener stanzaListener = stanza -> {
final Presence presence = (Presence) stanza;
if (presence.getStatus().equals(needle)) {
if (needle.equals(presence.getStatus())) {
received.signal();
}
};
Expand Down

0 comments on commit 51cd3f9

Please sign in to comment.