Skip to content

Commit

Permalink
#26 Prevent NPE on resize if component not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
dheid committed Mar 16, 2023
1 parent 46f395b commit 4e52a35
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,10 @@ private class ResizeListener extends ComponentAdapter {

@Override
public void componentResized(ComponentEvent e) {
calculateGeometry();
slider.repaint();
if (focusRect != null) {
calculateGeometry();
slider.repaint();
}
}
}

Expand Down

0 comments on commit 4e52a35

Please sign in to comment.