From 9b69605740fce98f069781a2afc29e58b988841c Mon Sep 17 00:00:00 2001 From: MajoBerger Date: Fri, 29 Sep 2023 08:27:17 +0200 Subject: [PATCH] WHY NULL OH NO --- .../src/main/java/org/dspace/handle/HandlePlugin.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dspace-api/src/main/java/org/dspace/handle/HandlePlugin.java b/dspace-api/src/main/java/org/dspace/handle/HandlePlugin.java index 4314e84d12bb..1275ef81d695 100644 --- a/dspace-api/src/main/java/org/dspace/handle/HandlePlugin.java +++ b/dspace-api/src/main/java/org/dspace/handle/HandlePlugin.java @@ -467,19 +467,19 @@ public Enumeration getHandlesForNA(byte[] theNAHandle) */ private static void loadServices() { // services are loaded - if (Objects.nonNull(handleService)) { + if (Objects.isNull(handleService)) { handleService = HandleServiceFactory.getInstance().getHandleService(); } - if (Objects.nonNull(configurationService)) { + if (Objects.isNull(configurationService)) { configurationService = DSpaceServicesFactory.getInstance().getConfigurationService(); } - if (Objects.nonNull(itemService)) { + if (Objects.isNull(itemService)) { itemService = ContentServiceFactory.getInstance().getItemService(); } - if (Objects.nonNull(handleClarinService)) { + if (Objects.isNull(handleClarinService)) { handleClarinService = ContentServiceFactory.getInstance().getHandleClarinService(); } }