Implement additional guard against garbage collected Database.

This commit is contained in:
Brian Pellin
2009-08-27 14:51:01 -05:00
parent 6e325e1c3c
commit 5e42b3283e

View File

@@ -37,6 +37,11 @@ public class SearchResults extends GroupBaseActivity {
super.onCreate(savedInstanceState);
setResult(KeePass.EXIT_NORMAL);
// Likely the app has been killed exit the activity
if ( KeePass.db == null ) {
finish();
}
mGroup = processSearchIntent(getIntent());
assert(mGroup != null);