From 298734ff86cc8960c7e9beda78dabb02aac43931 Mon Sep 17 00:00:00 2001 From: uclaros Date: Tue, 22 Oct 2024 12:49:10 +0300 Subject: [PATCH] Allow null collection license --- src/core/stac/qgsstacparser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/stac/qgsstacparser.cpp b/src/core/stac/qgsstacparser.cpp index 76fbabaee03..f218c9c8fbf 100644 --- a/src/core/stac/qgsstacparser.cpp +++ b/src/core/stac/qgsstacparser.cpp @@ -124,7 +124,7 @@ QgsStacCollection *QgsStacParser::collection() const QString id( QString::fromStdString( mData.at( "id" ) ) ); const QString description( QString::fromStdString( mData.at( "description" ) ) ); - const QString license( QString::fromStdString( mData.at( "license" ) ) ); + const QString license( mData.at( "license" ).is_null() ? QString() : QString::fromStdString( mData.at( "license" ) ) ); QgsStacExtent stacExtent; int totalExtents = 0;