Switch to side-by-side view
--- a/tool/run/plugins/basic/nodeTools.java +++ b/tool/run/plugins/basic/nodeTools.java @@ -49,6 +49,10 @@ */ public void addNode(){ JTree tree = core.studio.getTree(); + // avoid empty null objects when there is nothing on the tree + if(tree.getModel().getRoot()==null){ + return; + } TreeNodeSPDX nodeRoot = (TreeNodeSPDX) tree.getModel().getRoot(); TreeNodeSPDX node = swingUtils.nodeCreate("Tools", NodeType.none, nodeRoot); node.setIcon("toolbox.png");