Skip to content

[30] Settings window - NoSuchElementException #280

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

Open
JaRutkowski opened this issue Dec 31, 2020 · 1 comment
Open

[30] Settings window - NoSuchElementException #280

JaRutkowski opened this issue Dec 31, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@JaRutkowski
Copy link
Owner

JaRutkowski commented Dec 31, 2020

Once the 'Settings' window is opened by one user, then an error occurs for other users when they are trying to open the 'Settings' window, with the following error:

Exception in thread "AWT-EventQueue-0" java.util.NoSuchElementException: No value present
	at java.base/java.util.Optional.get(Optional.java:141)
	at com.javafee.elibrary.core.common.Constants$Panel_Settings.getByName(Constants.java:36)
	at com.javafee.elibrary.core.settingsform.Actions.reloadContentPanel(Actions.java:55)
	at com.javafee.elibrary.core.settingsform.Actions.setFirstNodeSelectionInTreeMenu(Actions.java:146)
	at com.javafee.elibrary.core.settingsform.Actions.initializeForm(Actions.java:47)
	at com.javafee.elibrary.core.settingsform.Actions.control(Actions.java:20)
	at com.javafee.elibrary.core.tabbedform.Actions.openSettingsForm(Actions.java:264)
	at com.javafee.elibrary.core.tabbedform.Actions.onClickBtnSettings(Actions.java:241)
	at com.javafee.elibrary.core.tabbedform.Actions.lambda$control$2(Actions.java:32)
	at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
	at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
	at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)

Then, the user is not able to perform any actions on the window.

image

Additionally, for the super admin user below error occurred (after the 'Settings' window was closed), but was not reproduced again yet.

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
	at com.javafee.elibrary.core.settingsform.Actions$1.windowClosed(Actions.java:29)
	at java.desktop/java.awt.AWTEventMulticaster.windowClosed(AWTEventMulticaster.java:368)
	at java.desktop/java.awt.AWTEventMulticaster.windowClosed(AWTEventMulticaster.java:367)
	at java.desktop/java.awt.AWTEventMulticaster.windowClosed(AWTEventMulticaster.java:367)
	at java.desktop/java.awt.Window.processWindowEvent(Window.java:2071)
	at java.desktop/javax.swing.JFrame.processWindowEvent(JFrame.java:298)
@JaRutkowski JaRutkowski added the bug Something isn't working label Dec 31, 2020
@AKepska
Copy link
Collaborator

AKepska commented Dec 4, 2022

Cannot reproduce the bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants