mirror of
https://github.com/lubosz/overte.git
synced 2025-04-26 08:15:33 +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;
|
||||
if (url.isEmpty()) {
|
||||
SnapshotMetaData* snapshotData = Snapshot::parseSnapshotData(filename);
|
||||
url = snapshotData->getURL();
|
||||
if (snapshotData) {
|
||||
url = snapshotData->getURL();
|
||||
}
|
||||
delete snapshotData;
|
||||
}
|
||||
if (url.isEmpty()) {
|
||||
|
|
Loading…
Reference in a new issue