diff options
-rw-r--r-- | src/location/maps/qgeojson.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/location/maps/qgeojson.cpp b/src/location/maps/qgeojson.cpp index 2f746cb5..765fc5ec 100644 --- a/src/location/maps/qgeojson.cpp +++ b/src/location/maps/qgeojson.cpp @@ -1058,6 +1058,8 @@ the data converted to GeoJSON. */ QJsonDocument exportGeoJson(const QVariantList &geoData) { + if (geoData.isEmpty()) + return QJsonDocument(); QVariantMap exportMap = geoData.at(0).value<QVariantMap>(); // Extracting the QVMap QJsonObject newObject; QJsonDocument newDocument; |