From b14ed74dc45e23c7a9922f027eba6ff22d25ef5b Mon Sep 17 00:00:00 2001 From: Andreas Romeyke <andreas.romeyke@slub-dresden.de> Date: Wed, 25 Jan 2023 14:40:22 +0100 Subject: [PATCH] - fixed order to reduce workload if null returned --- .../dps/repository/plugin/storage/nfs/SLUBStoragePlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/org/slub/rosetta/dps/repository/plugin/storage/nfs/SLUBStoragePlugin.java b/java/org/slub/rosetta/dps/repository/plugin/storage/nfs/SLUBStoragePlugin.java index 4781383..34608bd 100644 --- a/java/org/slub/rosetta/dps/repository/plugin/storage/nfs/SLUBStoragePlugin.java +++ b/java/org/slub/rosetta/dps/repository/plugin/storage/nfs/SLUBStoragePlugin.java @@ -396,10 +396,10 @@ public class SLUBStoragePlugin extends AbstractStorageHandler { protected String getFilePathInDescIfExists(StoredEntityMetaData storedEntityMetadata) { log.info("SLUBStoragePlugin.getFilePathInDescIfExists()"); - String tmpFilePath = getTempStorageDirectory(false) + "destPath"; if (storedEntityMetadata.getIePid() == null) { return null; } + String tmpFilePath = getTempStorageDirectory(false) + "destPath"; String existsDescPath = StorageUtil.readDestPathFromTmpFile(storedEntityMetadata.getIePid(), tmpFilePath, storedEntityMetadata.getEntityPid()); log.debug("SLUBStoragePlugin.getFilePathInDescIfExists() existsDescPath='" + existsDescPath + "'"); return existsDescPath; -- GitLab