Skip to content
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

Popup: possible npe from java.awt.Component#getGraphicsConfiguration #921

Closed
VISTALL opened this issue Nov 27, 2024 · 1 comment
Closed
Milestone

Comments

@VISTALL
Copy link

VISTALL commented Nov 27, 2024

Hello. I'm testing Consulo(IDEA fork) with FlatLaf and getting this error. I'm not sure for now - on which side, but depends on javadoc - this method can return null

Cannot invoke "java.awt.GraphicsConfiguration.isTranslucencyCapable()" because the return value of "java.awt.Component.getGraphicsConfiguration()" is null: Cannot invoke "java.awt.GraphicsConfiguration.isTranslucencyCapable()" because the return value of "java.awt.Component.getGraphicsConfiguration()" is null
java.lang.NullPointerException: Cannot invoke "java.awt.GraphicsConfiguration.isTranslucencyCapable()" because the return value of "java.awt.Component.getGraphicsConfiguration()" is null
	at consulo.desktop.awt/com.formdev.flatlaf/com.formdev.flatlaf.ui.FlatPopupFactory.getPopup(FlatPopupFactory.java:141)
	at consulo/consulo.ide.impl@3-SNAPSHOT/consulo.ide.impl.idea.ui.popup.PopupComponent$Factory$AwtHeavyweight.getPopup(PopupComponent.java:69)
	at consulo/consulo.ide.impl@3-SNAPSHOT/consulo.ide.impl.idea.ui.popup.AbstractPopup.show(AbstractPopup.java:973)
	at consulo/consulo.ide.impl@3-SNAPSHOT/consulo.ide.impl.idea.ui.popup.AbstractPopup.show(AbstractPopup.java:494)
	at consulo/consulo.ide.impl@3-SNAPSHOT/consulo.ide.impl.idea.ide.HelpTooltipImpl.lambda$scheduleShow$4(HelpTooltipImpl.java:468)
DevCharly added a commit that referenced this issue Nov 27, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
#921)

also check for null GraphicsConfiguration in other classes
@DevCharly
Copy link
Collaborator

Thanks for reporting.

Fixed in latest 3.5.3-SNAPSHOT: https://github.com/JFormDesigner/FlatLaf#snapshots

@DevCharly DevCharly added this to the 3.5.3 milestone Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants