From 8257decb84827bdec57ca72b2e57335576c19104 Mon Sep 17 00:00:00 2001 From: Mathieu Baudier Date: Thu, 25 Oct 2012 09:06:10 +0000 Subject: [PATCH] Fix bug in copyFiles git-svn-id: https://svn.argeo.org/commons/trunk@5643 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc --- .../src/main/java/org/argeo/jcr/JcrUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/runtime/org.argeo.server.jcr/src/main/java/org/argeo/jcr/JcrUtils.java b/server/runtime/org.argeo.server.jcr/src/main/java/org/argeo/jcr/JcrUtils.java index b0d87b197..83ab7a0b1 100644 --- a/server/runtime/org.argeo.server.jcr/src/main/java/org/argeo/jcr/JcrUtils.java +++ b/server/runtime/org.argeo.server.jcr/src/main/java/org/argeo/jcr/JcrUtils.java @@ -749,7 +749,7 @@ public class JcrUtils implements ArgeoJcrConstants { Node toChildFolder; if (toNode.hasNode(fileName)) { toChildFolder = toNode.getNode(fileName); - if (!toNode.isNodeType(NodeType.NT_FOLDER)) + if (!toChildFolder.isNodeType(NodeType.NT_FOLDER)) throw new ArgeoException(toChildFolder + " is not of type nt:folder"); } else { -- 2.30.2