Skip to content
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

Null exception when trying to import from external database with no *.bib open #1476

Closed
fishforbreakfast opened this issue Jun 6, 2016 · 3 comments
Labels
bug Confirmed bugs or reports that are very likely to be bugs

Comments

@fishforbreakfast
Copy link

JabRef version 3.4 on x86_64 Linux

Steps to reproduce:
Start JabRef.

  1. Close all opened or previously opened databases.
  2. From the file menu choose "import from external database"
  3. Connect to a database server.
  4. Choose a database to import from.
    JabRef throws an exception. Here is the log:

20:40:18.796 [Spin-0] ERROR net.sf.jabref.sql.importer.DbImportAction - Error importing from database
java.lang.NullPointerException
at net.sf.jabref.sql.importer.DbImportAction.performImport(DbImportAction.java:161) [JabRef-3.4.jar:?]
at net.sf.jabref.sql.importer.DbImportAction.run(DbImportAction.java:125) [JabRef-3.4.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_92]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_92]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_92]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_92]
at spin.Invocation.evaluate(Invocation.java:175) [JabRef-3.4.jar:?]
at spin.off.SpinOffEvaluator$1.run(SpinOffEvaluator.java:108) [JabRef-3.4.jar:?]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]


If another database is open previous to trying to import, everything works as it is supposed to. I've only tested this against a PostgreSQL server.

Cheers,

Fred

@stefan-kolb stefan-kolb added the bug Confirmed bugs or reports that are very likely to be bugs label Jun 6, 2016
@stefan-kolb
Copy link
Member

Thank you for your report 😄
I can reproduce the behavior and we will work on a fix for this issue. Stay tuned.

@stefan-kolb
Copy link
Member

Thank you for your report 👍
This should be fixed in current fix-1476. Please try the latest build from http://builds.jabref.org/fix-1476.

@fishforbreakfast
Copy link
Author

The fix works for this issue. Thank you again. I will test it for a while further to see if there is anything related that crops up.

Regards,

Fred

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bugs or reports that are very likely to be bugs
Projects
None yet
Development

No branches or pull requests

2 participants