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

Exception on Get BibTeX data from DOI #1239

Closed
paulsputer opened this issue Apr 19, 2016 · 8 comments
Closed

Exception on Get BibTeX data from DOI #1239

paulsputer opened this issue Apr 19, 2016 · 8 comments
Assignees
Labels
[outdated] type: bug Confirmed bugs or reports that are very likely to be bugs status: waiting-for-feedback The submitter or other users need to provide more information about the issue

Comments

@paulsputer
Copy link
Contributor

Using JabRef version 3.3 on Windows 7 I seem to be getting exceptions when requesting BibTex data from DOI after dragging and dropping certain papers which auto populated the DOI.

If I restart JabRef and request BibTex data from DOI again it works fine, and then fails a few papers later.

Log

5:52:07.499 [AWT-EventQueue-0] INFO  net.sf.jabref.importer.fetcher.CrossRef - DOI 10.1109/im.2001.924423 for Efficient Variants of the ICP Algorithm found.

Exception:

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at java.util.Objects.requireNonNull(Unknown Source)
    at net.sf.jabref.logic.util.DOI.<init>(DOI.java:63)
    at net.sf.jabref.importer.fetcher.DOItoBibTeXFetcher.getEntryFromDOI(DOItoBibTeXFetcher.java:86)
    at net.sf.jabref.gui.mergeentries.MergeEntryDOIDialog.<init>(MergeEntryDOIDialog.java:72)
    at net.sf.jabref.gui.entryeditor.FieldExtraComponents.lambda$getDoiExtraComponent$4(FieldExtraComponents.java:193)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)

Any ideas?

@simonharrer simonharrer added the [outdated] type: bug Confirmed bugs or reports that are very likely to be bugs label Apr 19, 2016
@stefan-kolb
Copy link
Member

See #1234?

@paulsputer
Copy link
Contributor Author

Thanks, I did a search for "exception" so didn't see that one. Clicking the DOI text field works for me too as a workaround.

@stefan-kolb
Copy link
Member

stefan-kolb commented Apr 19, 2016

What do you mean by dragging and dropping a paper? Can you give me the steps and artifacts to reproduce this? It would be probably handy if you can give me a link to a PDF that auto populates the doi field.

@stefan-kolb
Copy link
Member

Also, can you try a build from here so we can see if this fixes your issue as well? http://builds.jabref.org/fix-1234/

@stefan-kolb stefan-kolb added the status: waiting-for-feedback The submitter or other users need to provide more information about the issue label Apr 19, 2016
@paulsputer
Copy link
Contributor Author

What do you mean by dragging and dropping a paper?

As in click on a PDF file and drag it into the JabRef window to import it.

When I get a moment I'll try running it with debugger attached and see what's happening

@stefan-kolb
Copy link
Member

Have you tried the new build? I think this should solve your issue.

@paulsputer
Copy link
Contributor Author

Thanks @stefan-kolb, just tested and yes http://builds.jabref.org/fix-1234/ does solve the issue

@stefan-kolb
Copy link
Member

Good to hear 👍 Thanks for your report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[outdated] type: bug Confirmed bugs or reports that are very likely to be bugs status: waiting-for-feedback The submitter or other users need to provide more information about the issue
Projects
None yet
Development

No branches or pull requests

3 participants