Fixed: #1636 Exception on filtering (8)

This commit is contained in:
Jindra Petřík
2021-03-09 22:31:55 +01:00
parent 8ef2d8aa3f
commit 9ddc983a03

View File

@@ -1101,9 +1101,10 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
View.checkAccess();
List<TreeItem> nodes = getASTreeNodes(tagTree);
tagTree.clearSelection();
for (TreeItem n : nodes) {
if (n instanceof ClassesListTreeModel) {
String filterText = filterField.getText();
String filterText = filterField.getText();
((ClassesListTreeModel) n).setFilter(filterText);
TagTreeModel tm = tagTree.getModel();
TreePath path = tm.getTreePath(n);