From 4c6093393a6cda0aae6f322eb546b8daf906e576 Mon Sep 17 00:00:00 2001 From: "Gregory.Shrago" Date: Thu, 31 Aug 2017 14:27:08 +0300 Subject: [PATCH] unwrap DMT in findObjectInPath() --- .../platform-api/src/com/intellij/util/ui/tree/TreeUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/platform-api/src/com/intellij/util/ui/tree/TreeUtil.java b/platform/platform-api/src/com/intellij/util/ui/tree/TreeUtil.java index 041e5a89d347..6f952fb9c882 100644 --- a/platform/platform-api/src/com/intellij/util/ui/tree/TreeUtil.java +++ b/platform/platform-api/src/com/intellij/util/ui/tree/TreeUtil.java @@ -77,7 +77,7 @@ public final class TreeUtil { @Nullable public static T findObjectInPath(@Nullable TreePath path, @NotNull Class clazz) { for (TreePath p = path; p != null; p = p.getParentPath()) { - Object o = p.getLastPathComponent(); + Object o = getUserObject(p.getLastPathComponent()); if (clazz.isInstance(o)) return (T)o; } return null;