mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-07 14:30:56 +03:00
FlatButtonUI.getPreferredSize fix nullPointer when button.getComponentCount()>0
This commit is contained in:
@@ -398,7 +398,7 @@ public class FlatButtonUI
|
||||
if( isHelpButton( c ) )
|
||||
return new Dimension( helpButtonIcon.getIconWidth(), helpButtonIcon.getIconHeight() );
|
||||
|
||||
Dimension prefSize = super.getPreferredSize(c);
|
||||
Dimension prefSize = super.getPreferredSize( c );
|
||||
if ( prefSize == null )
|
||||
return null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user