diff --git a/src/main/java/eu/siacs/conversations/crypto/axolotl/AxolotlService.java b/src/main/java/eu/siacs/conversations/crypto/axolotl/AxolotlService.java index 59ff20fe5..44336d4fc 100644 --- a/src/main/java/eu/siacs/conversations/crypto/axolotl/AxolotlService.java +++ b/src/main/java/eu/siacs/conversations/crypto/axolotl/AxolotlService.java @@ -843,7 +843,8 @@ public class AxolotlService implements OnAdvancedStreamFeaturesLoaded { final String node = AxolotlService.PEP_BUNDLES + ":" + getOwnDeviceId(); final IqPacket deleteBundleNode = mXmppConnectionService.getIqGenerator().deleteNode(node); mXmppConnectionService.sendIqPacket(account, deleteBundleNode, null); - publishDeviceIdsAndRefineAccessModel(getOwnDeviceIds()); + final Set ownDeviceIds = getOwnDeviceIds(); + publishDeviceIdsAndRefineAccessModel(ownDeviceIds == null ? Collections.emptySet() : ownDeviceIds); } public List getCryptoTargets(Conversation conversation) {