From 9c2115d2d2c331aa10eceb4ad43f620be2b1606f Mon Sep 17 00:00:00 2001 From: zeapo Date: Sat, 1 Nov 2014 00:16:52 +0100 Subject: if the user press back without cloning, he gets an NPE --- app/src/main/java/com/zeapo/pwdstore/PasswordStore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- cgit v1.2.3