From 83624b2101836490da61a0d3a6ef208769ba2b82 Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Thu, 4 Jan 2018 14:48:41 +0100 Subject: [PATCH] [Minor] Allow empty Locator --- li.strolch.model/src/main/java/li/strolch/model/Locator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/li.strolch.model/src/main/java/li/strolch/model/Locator.java b/li.strolch.model/src/main/java/li/strolch/model/Locator.java index 8f051e26a..b3957ee17 100644 --- a/li.strolch.model/src/main/java/li/strolch/model/Locator.java +++ b/li.strolch.model/src/main/java/li/strolch/model/Locator.java @@ -68,7 +68,7 @@ public class Locator { * if the path is invalid, meaning has less than two elements in it */ private Locator(List pathElements) throws StrolchException { - if (pathElements == null || pathElements.isEmpty()) { + if (pathElements == null) { throw new StrolchException("The path elements may not be null and must contain at least 1 item"); //$NON-NLS-1$ } this.pathElements = Collections.unmodifiableList(new ArrayList<>(pathElements));