mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-24 16:08:49 -05:00
Fix nullpointer when revoking keys
This commit is contained in:
parent
3c46c3c2df
commit
562e379c56
@ -339,7 +339,8 @@ public class EditKeyFragment extends LoaderFragment implements
|
||||
} else {
|
||||
mSaveKeyringParcel.mRevokeUserIds.add(userId);
|
||||
// not possible to revoke and change to primary user id
|
||||
if (mSaveKeyringParcel.mChangePrimaryUserId.equals(userId)) {
|
||||
if (mSaveKeyringParcel.mChangePrimaryUserId != null
|
||||
&& mSaveKeyringParcel.mChangePrimaryUserId.equals(userId)) {
|
||||
mSaveKeyringParcel.mChangePrimaryUserId = null;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user