mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 06:18:52 +02:00
null guard
This commit is contained in:
parent
9e45b0ca28
commit
bf0f56c138
1 changed files with 3 additions and 1 deletions
|
@ -155,7 +155,9 @@ void Snapshot::uploadSnapshot(const QString& filename, const QUrl& href) {
|
||||||
QUrl url = href;
|
QUrl url = href;
|
||||||
if (url.isEmpty()) {
|
if (url.isEmpty()) {
|
||||||
SnapshotMetaData* snapshotData = Snapshot::parseSnapshotData(filename);
|
SnapshotMetaData* snapshotData = Snapshot::parseSnapshotData(filename);
|
||||||
url = snapshotData->getURL();
|
if (snapshotData) {
|
||||||
|
url = snapshotData->getURL();
|
||||||
|
}
|
||||||
delete snapshotData;
|
delete snapshotData;
|
||||||
}
|
}
|
||||||
if (url.isEmpty()) {
|
if (url.isEmpty()) {
|
||||||
|
|
Loading…
Reference in a new issue