From 3ac9001420a1e5db2c72ca890c1c969610f13432 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 9 Mar 2009 21:06:41 +0100 Subject: [PATCH] Fix validation of input parameter. --- src/net/pterodactylus/arachne/core/Core.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/pterodactylus/arachne/core/Core.java b/src/net/pterodactylus/arachne/core/Core.java index e7fc8ef..1061325 100644 --- a/src/net/pterodactylus/arachne/core/Core.java +++ b/src/net/pterodactylus/arachne/core/Core.java @@ -185,7 +185,7 @@ public class Core extends AbstractService { * @return The joined path */ private String createPath(String[] pathComponents, int index) { - Validation.begin().isNotNull("pathComponents", pathComponents).check().isLess("index", index, pathComponents.length).check(); + Validation.begin().isNotNull("pathComponents", pathComponents).check().isLessOrEqual("index", index, pathComponents.length).check(); StringBuilder path = new StringBuilder(); for (int pathComponentIndex = index; pathComponentIndex < pathComponents.length; pathComponentIndex++) { if (path.length() > 0) { -- 2.7.4