Skip to content

Commit

Permalink
WHY NULL OH NO (#448)
Browse files Browse the repository at this point in the history
  • Loading branch information
MajoBerger authored Sep 29, 2023
1 parent 9caa945 commit a965335
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dspace-api/src/main/java/org/dspace/handle/HandlePlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit a965335

Please sign in to comment.