mirror of https://github.com/zlatinb/muwire
do not NPE if hashing fails
parent
bcd24e56ac
commit
cc8801c48b
|
@ -44,6 +44,8 @@ public class FileManager {
|
||||||
|
|
||||||
public void onFileHashedEvent(FileHashedEvent e) {
|
public void onFileHashedEvent(FileHashedEvent e) {
|
||||||
hashingFile = null;
|
hashingFile = null;
|
||||||
|
if (e.getSharedFile() == null) // TODO: think of something better
|
||||||
|
return;
|
||||||
fileTree.add(e.getSharedFile().getFile(), e.getSharedFile());
|
fileTree.add(e.getSharedFile().getFile(), e.getSharedFile());
|
||||||
revision++;
|
revision++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue