Fix nullpointer when revoking keys
This commit is contained in:
@@ -339,7 +339,8 @@ public class EditKeyFragment extends LoaderFragment implements
|
|||||||
} else {
|
} else {
|
||||||
mSaveKeyringParcel.mRevokeUserIds.add(userId);
|
mSaveKeyringParcel.mRevokeUserIds.add(userId);
|
||||||
// not possible to revoke and change to primary user id
|
// 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;
|
mSaveKeyringParcel.mChangePrimaryUserId = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user