3
0
Fork 0
mirror of https://github.com/lubosz/overte.git synced 2025-04-26 08:15:33 +02:00

null guard

This commit is contained in:
howard-stearns 2016-11-23 15:27:24 -08:00
parent 9e45b0ca28
commit bf0f56c138

View file

@ -155,7 +155,9 @@ void Snapshot::uploadSnapshot(const QString& filename, const QUrl& href) {
QUrl url = href;
if (url.isEmpty()) {
SnapshotMetaData* snapshotData = Snapshot::parseSnapshotData(filename);
url = snapshotData->getURL();
if (snapshotData) {
url = snapshotData->getURL();
}
delete snapshotData;
}
if (url.isEmpty()) {