* @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) {