mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-12 06:57:13 -06:00
CheckBox and RadioButton: fixed NPE when button has children (similar to PR #68)
This commit is contained in:
@@ -101,6 +101,8 @@ public class FlatRadioButtonUI
|
||||
@Override
|
||||
public Dimension getPreferredSize( JComponent c ) {
|
||||
Dimension size = super.getPreferredSize( c );
|
||||
if( size == null )
|
||||
return null;
|
||||
|
||||
// small insets fix
|
||||
int focusWidth = getIconFocusWidth( c );
|
||||
|
||||
Reference in New Issue
Block a user