From 2189729f45700908d8e5ff0108268cf9f5eeac34 Mon Sep 17 00:00:00 2001 From: nielsandriesse Date: Tue, 23 Jun 2020 12:15:58 +1000 Subject: [PATCH] Fix crash --- src/org/thoughtcrime/securesms/jobs/RotateSignedPreKeyJob.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/org/thoughtcrime/securesms/jobs/RotateSignedPreKeyJob.java b/src/org/thoughtcrime/securesms/jobs/RotateSignedPreKeyJob.java index 82b721c845..c8d0932ec5 100644 --- a/src/org/thoughtcrime/securesms/jobs/RotateSignedPreKeyJob.java +++ b/src/org/thoughtcrime/securesms/jobs/RotateSignedPreKeyJob.java @@ -52,6 +52,8 @@ public class RotateSignedPreKeyJob extends BaseJob implements InjectableType { public void onRun() throws Exception { Log.i(TAG, "Rotating signed prekey..."); + if (!IdentityKeyUtil.hasIdentityKey(context)) { return; } + IdentityKeyPair identityKey = IdentityKeyUtil.getIdentityKeyPair(context); SignedPreKeyRecord signedPreKeyRecord = PreKeyUtil.generateSignedPreKey(context, identityKey, false);