Skip to content

Commit 98d8a33

Browse files
FriedJannikaaronzi
andauthored
Fixes Bug in InMemoryFileRepository (#738)
Co-authored-by: Aaron Zielstorff <aaron.zi@web.de>
1 parent b93d532 commit 98d8a33

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • basyx.common/basyx.filerepository-backend-inmemory/src/main/java/org/eclipse/digitaltwin/basyx/core/filerepository

basyx.common/basyx.filerepository-backend-inmemory/src/main/java/org/eclipse/digitaltwin/basyx/core/filerepository/InMemoryFileRepository.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ public void delete(String fileId) throws FileDoesNotExistException {
9292

9393
@Override
9494
public boolean exists(String fileId) {
95+
if(fileId == null) return false;
9596

9697
if (fileId.isBlank() || !isFilePathValid(fileId))
9798
return false;

0 commit comments

Comments
 (0)