*/
public void insertProject(Project project, Node node) {
logger.log(Level.FINEST, "insertProject(project=" + project + ",node=" + node + ")");
- Node insertNode = project.getNode();
- if (insertNode == null) {
- insertNode = node;
- if (insertNode == null) {
- throw new NullPointerException("node must not be null");
- }
- }
String insertId = "insert-" + project.getId();
- Insert newInsert = new Insert(project, insertNode, insertId);
+ Insert newInsert = new Insert(project, node, insertId);
inserts.put(insertId, newInsert);
saveConfiguration();
insertListenerSupport.fireInsertAdded(newInsert);