diff --git a/core/src/main/groovy/com/muwire/core/files/FileManager.groovy b/core/src/main/groovy/com/muwire/core/files/FileManager.groovy index c63b3643..c1dfa8e1 100644 --- a/core/src/main/groovy/com/muwire/core/files/FileManager.groovy +++ b/core/src/main/groovy/com/muwire/core/files/FileManager.groovy @@ -229,7 +229,7 @@ class FileManager { return files Set rv = new HashSet<>() files.each { - if (it.getPieceSize() != 0) + if (it != null && it.getPieceSize() != 0) rv.add(it) } rv