fix for npe

This commit is contained in:
orbiter 2013-07-27 15:20:09 +02:00
parent 268a36aaff
commit 87cfeaa4f3

View File

@ -149,7 +149,7 @@ public class migration {
}
}
public static void migrateBookmarkTagsDB(final Switchboard sb){
sb.bookmarksDB.close();
if (sb.bookmarksDB != null) sb.bookmarksDB.close();
final File tagsDBFile=new File(sb.workPath, "bookmarkTags.db");
if(tagsDBFile.exists()){
delete(tagsDBFile);