You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get a null pointer exception when using a combobox, though only after changing the LaF, strangely. The trace is:
java.lang.NullPointerException
at com.formdev.flatlaf.ui.FlatUIUtils.isCellEditor(FlatUIUtils.java:226)
at com.formdev.flatlaf.ui.FlatBorder.isCellEditor(FlatBorder.java:219)
at com.formdev.flatlaf.ui.FlatBorder.getFocusWidth(FlatBorder.java:252)
at com.formdev.flatlaf.ui.FlatBorder.getBorderInsets(FlatBorder.java:224)
at javax.swing.border.AbstractBorder.getBorderInsets(AbstractBorder.java:75)
at javax.swing.plaf.basic.BasicComboPopup.getPopupHeightForRowCount(BasicComboPopup.java:1241)
at javax.swing.plaf.basic.BasicComboPopup.getPopupLocation(BasicComboPopup.java:1298)
at javax.swing.plaf.basic.BasicComboPopup.show(BasicComboPopup.java:210)
at javax.swing.plaf.basic.BasicComboPopup.togglePopup(BasicComboPopup.java:1170)
at javax.swing.plaf.basic.BasicComboPopup$Handler.mousePressed(BasicComboPopup.java:858)
The problem seems to be that BasicComboPopup.getPopupHeightForRowCount calls border.getBorderInsets(null) and that null component gets passed down the chain until it causes an NPE in FlatUIUtils.isCellEditor where an attempt is made to getName() for the component.
The text was updated successfully, but these errors were encountered:
Was not able to reproduce this.
In my tests the scroller border was always null in BasicComboPopup.getPopupHeightForRowCount() and border.getBorderInsets(null) is never invoked.
Anyway added the null check to FlatUIUtils.isCellEditor()
I get a null pointer exception when using a combobox, though only after changing the LaF, strangely. The trace is:
The problem seems to be that BasicComboPopup.getPopupHeightForRowCount calls border.getBorderInsets(null) and that null component gets passed down the chain until it causes an NPE in FlatUIUtils.isCellEditor where an attempt is made to getName() for the component.
The text was updated successfully, but these errors were encountered: