aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohamed Zenadi <mohamed@zenadi.com>2017-07-27 00:42:34 +0100
committerMohamed Zenadi <mohamed@zenadi.com>2017-07-27 00:45:09 +0100
commit974d8e5f95cae8d205fb1a23d6442a479aca4ef2 (patch)
tree65c2650be9aba6a4b2330d0c351e42871c9ec451
parent2f75f99108c016dc625a249de93afe06b0dacdd1 (diff)
ensure data is not null
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/PasswordStore.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java
index f4ea9ec6..fb8ec8c7 100644
--- a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java
+++ b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java
@@ -565,7 +565,7 @@ public class PasswordStore extends AppCompatActivity {
break;
case PgpHandler.REQUEST_CODE_DECRYPT_AND_VERIFY:
// 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"));
refreshListAdapter();
}