Allow null collection license

This commit is contained in:
uclaros 2024-10-22 12:49:10 +03:00 committed by Martin Dobias
parent 6a273f0e89
commit 298734ff86

View File

@ -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;