jabref icon indicating copy to clipboard operation
jabref copied to clipboard

Import old jabref preferences fails with npe odel.metadata.UserHostInfo.getUserHostString

Open koppor opened this issue 3 weeks ago • 2 comments

 org.jabref.migrations.PreferencesMigrations.moveApiKeysToKeyring()
ERROR: Unable to open key store: java.lang.NullPointerException: Cannot invoke "org.jabref.model.metadata.UserHostInfo.getUserHostString()" because "this.userAndHost" is null
	at org.jabref.jablib/org.jabref.logic.preferences.JabRefCliPreferences.getInternalPreferences(JabRefCliPreferences.java:1652)
	at org.jabref/org.jabref.migrations.PreferencesMigrations.moveApiKeysToKeyring(PreferencesMigrations.java:565)
	at org.jabref/org.jabref.migrations.PreferencesMigrations.runMigrations(PreferencesMigrations.java:70)
	at org.jabref/org.jabref.Launcher.main(Launcher.java:90)

in jabkit use preferences import path/toJabRef.xml and see the exception

Task: Add if in appropriate place - or try to set user and host.

Attached JabRef.xml can be checked-in and used for testing.

koppor avatar Dec 02 '25 13:12 koppor

/assign-me

subhash-dev-23 avatar Dec 03 '25 05:12 subhash-dev-23

👋 Hey @subhash-dev-23, thank you for your interest in this issue! 🎉

We're excited to have you on board. Start by exploring our Contributing guidelines, and set up your local development workspace by following the steps in our workspace setup guidelines to get started smoothly.

For questions on JabRef functionality, you can consult the JabRef Guru. For questions related to the codebase, please start using DeepWiki.

In case you encounter failing tests during development, please check our developer FAQs!

Still facing issues or having more questions? Feel free to ask here on GitHub or on JabRef's Gitter chat. Please don't hesitate to open a (draft) pull request early on to show the direction you are heading towards if unsure.

Happy coding! 🚀

jabref-machine avatar Dec 03 '25 05:12 jabref-machine

/assign-me

pulkitbajaj avatar Dec 13 '25 16:12 pulkitbajaj

👋 Hey @pulkitbajaj, thank you for your interest in this issue! 🎉

We're excited to have you on board. Start by exploring our Contributing guidelines, and set up your local development workspace by following the steps in our workspace setup guidelines to get started smoothly.

For questions on JabRef functionality, you can consult the JabRef Guru. For questions related to the codebase, please start using DeepWiki.

In case you encounter failing tests during development, please check our developer FAQs!

Still facing issues or having more questions? Feel free to ask here on GitHub or on JabRef's Gitter chat. Please don't hesitate to open a (draft) pull request early on to show the direction you are heading towards if unsure.

Happy coding! 🚀

jabref-machine avatar Dec 13 '25 16:12 jabref-machine