TerraSync: fix crashes with null file return
Not sure how this is happening, but, check for a null file object in FileGetRequest::onDone.
This commit is contained in:
parent
79252d889c
commit
de268300fb
@ -995,7 +995,10 @@ HTTPRepository::failure() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
void onDone() override {
|
void onDone() override {
|
||||||
|
if (file) {
|
||||||
file->close();
|
file->close();
|
||||||
|
}
|
||||||
|
|
||||||
if (responseCode() == 200) {
|
if (responseCode() == 200) {
|
||||||
std::string hash =
|
std::string hash =
|
||||||
strutils::encodeHex(sha1_result(&hashContext), HASH_LENGTH);
|
strutils::encodeHex(sha1_result(&hashContext), HASH_LENGTH);
|
||||||
|
Loading…
Reference in New Issue
Block a user