mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-30 20:16:54 +00:00
Nullpointer fix
This commit is contained in:
@@ -3273,6 +3273,9 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
|
||||
|
||||
public void setTagTreeSelectedNode(AbstractTagTree tree, TreeItem treeItem) {
|
||||
AbstractTagTreeModel ttm = tree.getFullModel();
|
||||
if (ttm == null) {
|
||||
return;
|
||||
}
|
||||
TreePath tp = ttm.getTreePath(treeItem);
|
||||
if (tp != null) {
|
||||
tree.setSelectionPath(tp);
|
||||
|
||||
Reference in New Issue
Block a user