Fix crash on initial kdbx entry addition.

This commit is contained in:
Brian Pellin committed 2016-03-07 21:42:51 -06:00
1 parent bcc52217a8
commit 2c8b85aba7
3 files changed
+4 -2

No files matched your search

@@ -1,5 +1,5 @@
/*
* Copyright 2010-2015 Brian Pellin.
* Copyright 2010-2016 Brian Pellin.
*
* This file is part of KeePassDroid.
*
@@ -374,6 +374,7 @@ public class PwDatabaseV4 extends PwDatabase {
String filename = URLUtil.guessFileName(dbPath, null, null);
rootGroup = new PwGroupV4(true, true, dbNameFromPath(dbPath), iconFactory.getIcon(PwIconStandard.FOLDER));
groups.put(rootGroup.getId(), rootGroup);
}
private String dbNameFromPath(String dbPath) {