summaryrefslogtreecommitdiff
path: root/javax/swing/JTree.java
diff options
context:
space:
mode:
Diffstat (limited to 'javax/swing/JTree.java')
-rw-r--r--javax/swing/JTree.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/javax/swing/JTree.java b/javax/swing/JTree.java
index c76a9b783..7d093e3d0 100644
--- a/javax/swing/JTree.java
+++ b/javax/swing/JTree.java
@@ -2355,7 +2355,7 @@ public class JTree extends JComponent implements Scrollable, Accessible
if (selectionModel != null)
{
TreePath oldValue = selectionModel.getLeadSelectionPath();
- if (path.equals(oldValue))
+ if (path == oldValue || path != null && path.equals(oldValue))
return;
// Repaint the previous and current rows with the lead selection path.