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

error when exporting to endote and ris format #1001

Closed
jdhao opened this issue Mar 20, 2016 · 3 comments
Closed

error when exporting to endote and ris format #1001

jdhao opened this issue Mar 20, 2016 · 3 comments
Labels
bug Confirmed bugs or reports that are very likely to be bugs

Comments

@jdhao
Copy link

jdhao commented Mar 20, 2016

  • JabRef version (available in the About box):JabRef_windows_3_3dev--snapshot--2016-03-18--master--70a65a6
  • Operating system and version: windows 8.1 enterprise edition
  • Steps to reproduce:
    1. open and bibtex file
    2. export(choose the endote or ris format)
    3. the program will tell you that there is an error "could not save the file, java.lang.NullPointerException"
@Siedlerchr
Copy link
Member

Confirmed in latest development version:
Seems to have sth to do with the PR #982
I just looked into it, it seems to only happen when no Entries are selected.
However, selecting all entries and then clicking export works.

Full error:

WARN net.sf.jabref.exporter.ExportFormats - Problem exporting
java.lang.NullPointerException
at java.util.ArrayList.addAll(Unknown Source) ~[?:1.8.0_74]
at net.sf.jabref.exporter.BibDatabaseWriter.getSortedEntries(BibDatabaseWriter.java:97) ~[bin/:?]
at net.sf.jabref.exporter.ExportFormat.performExport(ExportFormat.java:230) ~[bin/:?]
at net.sf.jabref.exporter.ExportFormats$1ExportAction$1.run(ExportFormats.java:231) [bin/:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_74]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_74]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_74]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_74]
at spin.Invocation.evaluate(Invocation.java:175) [spin.jar:?]
at spin.off.SpinOffEvaluator$1.run(SpinOffEvaluator.java:108) [spin.jar:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_74]

@oscargus oscargus added the bug Confirmed bugs or reports that are very likely to be bugs label Mar 20, 2016
@oscargus
Copy link
Contributor

Could you try the latest master (available in 20 minutes or so)? I had to push directly to the master as I forgot to create a separate branch...

@oscargus
Copy link
Contributor

And, yes, it was only when no entries were selected. I also fixed another problem where the complete database was exported if no MetaData was present, even when entries where selected.

Siedlerchr added a commit to Siedlerchr/jabref that referenced this issue Mar 20, 2016
* upstream/master:
  Disabled NPE test
  Fix JabRef#972 Correct boolean logic
  Fixed JabRef#1001
This was referenced Mar 20, 2016
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

3 participants