Skip to content

Commit

Permalink
Fixes #6863
Browse files Browse the repository at this point in the history
  • Loading branch information
calixtus committed Sep 21, 2020
1 parent 96c2fc8 commit bf78445
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ public List<Path> getFileDirectoriesAsPaths(FilePreferences preferences) {

// 4. BIB file directory
getDatabasePath().ifPresent(dbPath -> {
Objects.requireNonNull(dbPath, "dbPath is null");
Path parentPath = dbPath.getParent();
if (parentPath == null) {
parentPath = Path.of(System.getProperty("user.dir"));
Expand All @@ -146,6 +145,8 @@ public List<Path> getFileDirectoriesAsPaths(FilePreferences preferences) {
// Check if we should add it as primary file dir (first in the list) or not:
if (preferences.isBibLocationAsPrimary()) {
fileDirs.add(0, parentPath);
} else {
fileDirs.add(parentPath);
}
});

Expand Down

0 comments on commit bf78445

Please # to comment.