mirror of https://github.com/zlatinb/muwire
catch FNFE GitHub issue #171
parent
d49ef8b495
commit
a8d9354bf8
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue