From 198e5fbe977b2ea3defe1cb1f1b961409950bc7f Mon Sep 17 00:00:00 2001 From: weisj Date: Sat, 13 Jun 2020 14:23:41 +0200 Subject: [PATCH] Fix NPE in expand_or_move_down action. Fixes #182 --- .../java/com/github/weisj/darklaf/ui/tree/DarkTreeUI.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/tree/DarkTreeUI.java b/core/src/main/java/com/github/weisj/darklaf/ui/tree/DarkTreeUI.java index f7eb2fd3..f670429b 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/tree/DarkTreeUI.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/tree/DarkTreeUI.java @@ -220,9 +220,9 @@ public class DarkTreeUI extends BasicTreeUI implements PropertyChangeListener { } } } + expandAction.actionPerformed(e); + tree.repaint(); } - expandAction.actionPerformed(e); - tree.repaint(); } }); }