mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-08 15:00:54 +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 ) )
|
if( isHelpButton( c ) )
|
||||||
return new Dimension( helpButtonIcon.getIconWidth(), helpButtonIcon.getIconHeight() );
|
return new Dimension( helpButtonIcon.getIconWidth(), helpButtonIcon.getIconHeight() );
|
||||||
|
|
||||||
Dimension prefSize = super.getPreferredSize(c);
|
Dimension prefSize = super.getPreferredSize( c );
|
||||||
if ( prefSize == null )
|
if ( prefSize == null )
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user