Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit 974d8e5

Browse files
committed
ensure data is not null
1 parent 2f75f99 commit 974d8e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/zeapo/pwdstore/PasswordStore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ protected void onActivityResult(int requestCode, int resultCode,
565565
break;
566566
case PgpHandler.REQUEST_CODE_DECRYPT_AND_VERIFY:
567567
// if went from decrypt->edit and user saved changes, we need to commitChange
568-
if (data.getBooleanExtra("needCommit", false)) {
568+
if (data != null && data.getBooleanExtra("needCommit", false)) {
569569
commitChange(this.getResources().getString(R.string.edit_commit_text) + data.getExtras().getString("NAME"));
570570
refreshListAdapter();
571571
}

0 commit comments

Comments
 (0)