From a9538bc61fbd37ccda89516010dec58529089b4e Mon Sep 17 00:00:00 2001 From: Zhao Song Date: Thu, 12 Oct 2023 12:53:26 -0700 Subject: [PATCH] fix test --- .../java/org/openjdk/skara/bots/mlbridge/WebrevStorage.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bots/mlbridge/src/main/java/org/openjdk/skara/bots/mlbridge/WebrevStorage.java b/bots/mlbridge/src/main/java/org/openjdk/skara/bots/mlbridge/WebrevStorage.java index 9d69492b1..c85eea332 100644 --- a/bots/mlbridge/src/main/java/org/openjdk/skara/bots/mlbridge/WebrevStorage.java +++ b/bots/mlbridge/src/main/java/org/openjdk/skara/bots/mlbridge/WebrevStorage.java @@ -324,11 +324,11 @@ private URI createAndArchive(PullRequest pr, Repository localRepository, Path sc } public Repository getJsonLocalStorage(HostedRepositoryPool hostedRepositoryPool, Path scratchPath) throws IOException { - return hostedRepositoryPool.checkout(jsonStorage, storageRef, scratchPath); + return jsonStorage == null ? null : hostedRepositoryPool.checkout(jsonStorage, storageRef, scratchPath); } public Repository getHtmlLocalStorage(HostedRepositoryPool hostedRepositoryPool, Path scratchPath) throws IOException { - return hostedRepositoryPool.checkout(htmlStorage, storageRef, scratchPath); + return htmlStorage == null ? null : hostedRepositoryPool.checkout(htmlStorage, storageRef, scratchPath); } interface WebrevGenerator {