diff --git a/core/src/main/groovy/com/muwire/core/files/PersisterFolderService.groovy b/core/src/main/groovy/com/muwire/core/files/PersisterFolderService.groovy index 2abe73e5..ffba0e97 100644 --- a/core/src/main/groovy/com/muwire/core/files/PersisterFolderService.groovy +++ b/core/src/main/groovy/com/muwire/core/files/PersisterFolderService.groovy @@ -413,7 +413,11 @@ class PersisterFolderService extends BasePersisterService { File file = path.toFile() if (!file.exists() || !file.isFile()) return null - InfoHash.fromHashList(file.bytes) + try { + return InfoHash.fromHashList(file.bytes) + } catch (FileNotFoundException strange) { + return null + } } private static final class HMACKey implements SecretKey {