forked from Qortal/qortal
Fixed occasional NPE seen in ArbitraryDataFileMessage
This commit is contained in:
parent
e2a2a1f956
commit
e60cd96514
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user