Skip to content

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

@koppor

Description

@koppor
 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.

Metadata

Metadata

Assignees

Type

Projects

Status

In Progress

Relationships

None yet

Development

No branches or pull requests

Issue actions