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);