diff --git a/tycho-its/src/test/java/org/eclipse/tycho/test/util/HttpServer.java b/tycho-its/src/test/java/org/eclipse/tycho/test/util/HttpServer.java index 175305c15d..d22a54bb3f 100644 --- a/tycho-its/src/test/java/org/eclipse/tycho/test/util/HttpServer.java +++ b/tycho-its/src/test/java/org/eclipse/tycho/test/util/HttpServer.java @@ -14,6 +14,7 @@ import java.io.File; import java.io.IOException; +import java.util.Collections; import java.util.EnumSet; import java.util.List; import java.util.concurrent.TimeUnit; @@ -199,7 +200,7 @@ public String getUrl(String contextName) { public List getAccessedUrls(String contextName) { synchronized (contextName2accessedUrls) { - return List.copyOf(contextName2accessedUrls.get(contextName)); + return List.copyOf(contextName2accessedUrls.getOrDefault(contextName, Collections.emptyList())); } }