Browse Source

Fixed NPE in DarkCheckBoxMenuItemUI

pull/75/head
weisj 5 years ago
parent
commit
38ad52b79c
  1. 4
      core/src/main/java/com/github/weisj/darklaf/ui/checkbox/DarkCheckBoxMenuItemUI.java

4
core/src/main/java/com/github/weisj/darklaf/ui/checkbox/DarkCheckBoxMenuItemUI.java

@ -39,7 +39,9 @@ import java.awt.*;
*/
public class DarkCheckBoxMenuItemUI extends DarkMenuItemUIBase {
private final MouseClickListener clickListener = e -> SwingUtilities.invokeLater(() -> menuItem.setArmed(true));
private final MouseClickListener clickListener = e -> SwingUtilities.invokeLater(() -> {
if (menuItem != null) menuItem.setArmed(true);
});
private Icon checkBoxIcon;
private Icon checkBoxDisabledIcon;

Loading…
Cancel
Save