do not NPE if hashing fails

pull/42/head
Zlatin Balevsky 2020-03-09 16:05:57 +00:00
parent bcd24e56ac
commit cc8801c48b
1 changed files with 2 additions and 0 deletions

View File

@ -44,6 +44,8 @@ public class FileManager {
public void onFileHashedEvent(FileHashedEvent e) {
hashingFile = null;
if (e.getSharedFile() == null) // TODO: think of something better
return;
fileTree.add(e.getSharedFile().getFile(), e.getSharedFile());
revision++;
}