fix(FileTransferChatMessageModifier): check if file url is null before string construction!

This commit is contained in:
Ronan Abhamon 2017-12-08 11:12:17 +01:00
parent dff49bec34
commit d2ec19ac7e

View file

@ -539,7 +539,7 @@ static void fillFileTransferContentInformationsFromVndGsmaRcsFtHttpXml(FileTrans
}
xmlFreeDoc(xmlMessageBody);
fileTransferContent->setFileUrl((const char *)file_url); // Set file url in the file transfer content for the download
fileTransferContent->setFileUrl(file_url ? (const char *)file_url : "");
xmlFree(file_url);
}