mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-29 13:27:46 +00:00
ensure data is not null
This commit is contained in:
parent
2f75f99108
commit
974d8e5f95
@ -565,7 +565,7 @@ public class PasswordStore extends AppCompatActivity {
|
|||||||
break;
|
break;
|
||||||
case PgpHandler.REQUEST_CODE_DECRYPT_AND_VERIFY:
|
case PgpHandler.REQUEST_CODE_DECRYPT_AND_VERIFY:
|
||||||
// if went from decrypt->edit and user saved changes, we need to commitChange
|
// if went from decrypt->edit and user saved changes, we need to commitChange
|
||||||
if (data.getBooleanExtra("needCommit", false)) {
|
if (data != null && data.getBooleanExtra("needCommit", false)) {
|
||||||
commitChange(this.getResources().getString(R.string.edit_commit_text) + data.getExtras().getString("NAME"));
|
commitChange(this.getResources().getString(R.string.edit_commit_text) + data.getExtras().getString("NAME"));
|
||||||
refreshListAdapter();
|
refreshListAdapter();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user