ComboBox: fix NPE in CellPaddingBorder.install() (issue #408)

(cherry picked from commit d48b98f582)
This commit is contained in:
Karl Tauber
2021-11-11 12:30:10 +01:00
parent 0b6df8be1c
commit a97076ead5
2 changed files with 3 additions and 1 deletions

View File

@@ -8,6 +8,8 @@ FlatLaf Change Log
- ComboBox (not editable): Fixed background painted outside of border if round
edges are enabled (client property `JComponent.roundRect` is `true`). (similar
to issue #382; regression since fixing #330 in FlatLaf 1.4)
- ComboBox: Fixed `NullPointerException`, which may occur under special
circumstances. (issue #408)
- Table: Do not select text in cell editor when it gets focus (when
`JTable.surrendersFocusOnKeystroke` is `true`) and
`TextComponent.selectAllOnFocusPolicy` is `once` (the default) or `always`.

View File

@@ -835,7 +835,7 @@ public class FlatComboBoxUI
// remember old border and replace it
rendererBorder = jc.getBorder();
rendererComponent.setBorder( this );
jc.setBorder( this );
}
/**