From a6338921cb7bdd20b216d41e238de00f9e6f0e2a Mon Sep 17 00:00:00 2001 From: milanmajchrak <90026355+milanmajchrak@users.noreply.github.com> Date: Thu, 23 May 2024 14:43:04 +0200 Subject: [PATCH] The Item should not be exposed by the OAI --- .../src/main/java/org/dspace/xoai/filter/ColComFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dspace-oai/src/main/java/org/dspace/xoai/filter/ColComFilter.java b/dspace-oai/src/main/java/org/dspace/xoai/filter/ColComFilter.java index b2a2f09da7a9..493ebfff8332 100644 --- a/dspace-oai/src/main/java/org/dspace/xoai/filter/ColComFilter.java +++ b/dspace-oai/src/main/java/org/dspace/xoai/filter/ColComFilter.java @@ -88,7 +88,7 @@ private String getSetSpec() { } private DSpaceObject getDSpaceObject() { - if (Objects.isNull(dso)) { + if (Objects.nonNull(dso)) { return dso; } if (Objects.nonNull(getConfiguration().get("handle"))) {