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

NPE when closing JabRef with new unsaved database #687

Closed
oscargus opened this issue Jan 20, 2016 · 1 comment
Closed

NPE when closing JabRef with new unsaved database #687

oscargus opened this issue Jan 20, 2016 · 1 comment
Labels
bug Confirmed bugs or reports that are very likely to be bugs type: question
Milestone

Comments

@oscargus
Copy link
Contributor

Create a new database, possibly add some entries. Close JabRef with the tab active and ignore saving it.

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at java.util.prefs.AbstractPreferences.put(Unknown Source)
    at net.sf.jabref.JabRefPreferences.put(JabRefPreferences.java:915)
    at net.sf.jabref.logic.preferences.LastFocusedTabPreferences.setLastFocusedTab(LastFocusedTabPreferences.java:39)
    at net.sf.jabref.gui.JabRefFrame.tearDownJabRef(JabRefFrame.java:799)
    at net.sf.jabref.gui.JabRefFrame.quit(JabRefFrame.java:899)

should be quite easy to fix. The main problem is what should happen? Should one just reset the last focused tab preference or leave it as is (which doesn't make sense as one might have closed that tab).

@oscargus oscargus added bug Confirmed bugs or reports that are very likely to be bugs type: question labels Jan 20, 2016
@oscargus oscargus added this to the v3.3 milestone Jan 20, 2016
@simonharrer
Copy link
Contributor

I would say reset the setting.

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 type: question
Projects
None yet
Development

No branches or pull requests

2 participants