-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Fix NPE on startup #14272
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
Fix NPE on startup #14272
Conversation
|
Tried the PR. Still ... |
|
try with -d all https://docs.jabref.org/advanced/commandline for resetting the prefs |
We should know where it crashes to fix the issue - and not be forced to tell all users that they should reset their preferences. |
|
To replicate the issue: --- a/jabgui/src/main/java/org/jabref/gui/JabRefGUI.java
+++ b/jabgui/src/main/java/org/jabref/gui/JabRefGUI.java
@@ -109,6 +109,10 @@ public class JabRefGUI extends Application {
dialogService.showErrorDialogAndWait("Uncaught exception occurred in " + thread, exception);
}));
+ if (1 == 1) {
+ throw new RuntimeException();
+ }
+
initialize();
JabRefGUI.mainFrame = new JabRefFrame( |
|
DevChat: @ThiloteE needs to check. He needs to do other work. I put him as assignee to make it transparent that we wait for his input. |
|
Tried 3c17fdb If we can fix this issue it's better than telling all users having to reset their preferences. I think reseting prefs should only be the last resort. |
|
ERROR: Error during initialization: java.lang.IllegalArgumentException: No enum constant org.jabref.logic.importer.plaincitation.PlainCitationParserChoice.RULE_BASED |
|
No changelog, because issue introduced after release. |
* main: Fix NPE on startup (#14272)
|
Can confirm, it works now. I can start JabRef again with this PR. |
* upstream/main: Fix NPE on startup (#14272)
* Try to get logging running again * Remove use of Map for configuration * Fix exception * Try to log Exceptions * Revert "Try to get logging running again" This reverts commit 89b846f. * Fix exception
At one system we have
Without any more output
Breaking commit was found via manual git bisect.
Good commit: e6ceac8
First bad commit: 0dc6dd7
More logging needs to be done "manually":
gluonhq/client-samples#12 (comment)
Follow-up to #14233
CC @InAnYan - by renaming the citation constants, reading preferences caused an NPE.
Steps to test
Mandatory checks
CHANGELOG.mdin a way that is understandable for the average user (if change is visible to the user)