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(); } }