-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
scanLabeledControl
logic issue
#11348
Comments
The problem lies here: private static void scanLabeledControls(Parent parent, ArrayListMultimap<PreferencesTab, Labeled> prefsTabLabelMap, PreferencesTab preferencesTab) {
for (Node child : parent.getChildrenUnmodifiable()) {
if (!(child instanceof Labeled)) {
scanLabeledControls((Parent) child, prefsTabLabelMap, preferencesTab);
} else {
Labeled labeled = (Labeled) child;
if (!labeled.getText().isEmpty()) {
prefsTabLabelMap.put(preferencesTab, labeled);
}
}
}
} In this code there are two branches for a
So, if you have only But, in my case I've added What change I propose: make 3 branches:
|
scanLabelledControl
logic issuescanLabeledControl
logic issue
I've made the changes and now the error disappeared. I'm not really sure how to test this properly, but I'll make the PR |
JabRef version
5.13 (latest release)
Operating system
Windows
Details on version and operating system
No response
Checked with the latest development build (copy version output from About dialog)
Steps to reproduce the behaviour
Label
's,CheckBox
'es,TextField
's,TextArea
's, and...Text
's.Appendix
...
Log File
The text was updated successfully, but these errors were encountered: