Fixed occasional NPE seen in ArbitraryDataFileMessage

This commit is contained in:
CalDescent 2023-04-14 11:02:27 +01:00
parent e2a2a1f956
commit e60cd96514

View File

@ -231,6 +231,11 @@ public class ArbitraryDataFileManager extends Thread {
arbitraryDataFile = existingFile;
}
if (arbitraryDataFile == null) {
// We don't have a file, so give up here
return null;
}
// We might want to forward the request to the peer that originally requested it
this.handleArbitraryDataFileForwarding(requestingPeer, new ArbitraryDataFileMessage(signature, arbitraryDataFile), originalMessage);