From 2ab79371be9e363e182cb2dec74986d18ef46c47 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 13 Nov 2008 01:56:13 +0100 Subject: [PATCH] =?utf8?q?Don=E2=80=99t=20check=20node=20in=20project,=20a?= =?utf8?q?lways=20use=20given=20node.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/net/pterodactylus/jsite/core/InsertManager.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/net/pterodactylus/jsite/core/InsertManager.java b/src/net/pterodactylus/jsite/core/InsertManager.java index 2c4f97b..00c05e3 100644 --- a/src/net/pterodactylus/jsite/core/InsertManager.java +++ b/src/net/pterodactylus/jsite/core/InsertManager.java @@ -84,15 +84,8 @@ public class InsertManager { */ 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); -- 2.7.4