aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeapo <mohamed@zenadi.com>2014-11-01 00:16:52 +0100
committerzeapo <mohamed@zenadi.com>2014-11-01 00:16:52 +0100
commit9c2115d2d2c331aa10eceb4ad43f620be2b1606f (patch)
tree5cde4d15c4edb97adf8833388d0ca4dd1a9b4ab0
parentb058008523c72841670882e79bd9bb5fb8d904f8 (diff)
if the user press back without cloning, he gets an NPE
-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 3de74357..e932584f 100644
--- a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java
+++ b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java
@@ -329,7 +329,7 @@ public class PasswordStore extends ActionBarActivity {
super.onBackPressed();
}
- if (!plist.isNotEmpty()) {
+ if (null != plist && !plist.isNotEmpty()) {
getSupportActionBar().setDisplayHomeAsUpEnabled(false);
}
}