-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clicking 'Get fulltext' triggers a 'null pointer exception' when a databse is opened in a current directory. #2739
Comments
The reason seems to be in the public List getFileDirectories(String fieldName, FileDirectoryPreferences preferences) method (BibDatabaseContext.java:171), line 'String parentDir = dbPath.getParent().toAbsolutePath().toString();' -- when a database is opened as 'bibliography.bib', the dbPath.getParent() is null. Below is the output from my branch ([email protected]:sauliusg/jabref.git, fix-2700-null-pointer-exception-on-Get-fulltext fa84e4e Adding a bunch of debug prints...) with debug prints. I think I can pin down the reason and offer a fix tomorrow... vis.:
|
Was closed by mistake, reopening. |
JabRef version JabRef 3.8.2 and JabRef 4.0.0-dev (master commit e7fc94c), running on 4.4.0-53-generic #74-Ubuntu SMP Fri Dec 2 15:59:10 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux, LinuxMin 18.1, openjdk version "1.8.0_121", triggers "Null pointer exception" when database is opened in the current directory, with no explicit path.
Steps to reproduce (using stock 'bash' on LinuxMint):
bibliography.zip
the GUI can be closed normally.
If a database is opened using menus, "File|Open Database|...", the current master works as expected.
The text was updated successfully, but these errors were encountered: