Browse Source

The super constructor of DarkScrollBarListener checks null animators returned by DarkMacScrollBarUI.MacScrollBarListener.

pull/222/head
Kohei SAKURAI 4 years ago committed by Jannis Weis
parent
commit
7ee01c45d5
  1. 8
      core/src/main/java/com/github/weisj/darklaf/ui/scrollpane/DarkScrollBarListener.java

8
core/src/main/java/com/github/weisj/darklaf/ui/scrollpane/DarkScrollBarListener.java

@ -61,10 +61,10 @@ public class DarkScrollBarListener extends MouseAdapter implements AdjustmentLis
trackFadeinAnimator = createTrackFadeinAnimator(); trackFadeinAnimator = createTrackFadeinAnimator();
thumbFadeoutAnimator = createThumbFadeoutAnimator(); thumbFadeoutAnimator = createThumbFadeoutAnimator();
thumbFadeinAnimator = createThumbFadeinAnimator(); thumbFadeinAnimator = createThumbFadeinAnimator();
trackFadeoutAnimator.setEnabled(animationsEnabled); if (trackFadeoutAnimator != null) trackFadeoutAnimator.setEnabled(animationsEnabled);
trackFadeinAnimator.setEnabled(animationsEnabled); if (trackFadeinAnimator != null) trackFadeinAnimator.setEnabled(animationsEnabled);
thumbFadeoutAnimator.setEnabled(animationsEnabled); if (thumbFadeoutAnimator != null) thumbFadeoutAnimator.setEnabled(animationsEnabled);
thumbFadeinAnimator.setEnabled(animationsEnabled); if (thumbFadeinAnimator != null) thumbFadeinAnimator.setEnabled(animationsEnabled);
} }
public void uninstall() { public void uninstall() {

Loading…
Cancel
Save