We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 1eb3bfc commit cfc3a86Copy full SHA for cfc3a86
src/core/qgsexpression.cpp
@@ -5207,6 +5207,10 @@ QString QgsExpression::formatPreviewString( const QVariant& value )
5207
else
5208
return tr( "<i><geometry: %1></i>" ).arg( QgsWKBTypes::displayString( geom.geometry()->wkbType() ) );
5209
}
5210
+ else if ( !value.isValid() )
5211
+ {
5212
+ return tr( "<i>NULL</i>" );
5213
+ }
5214
else if ( value.canConvert< QgsFeature >() )
5215
{
5216
//result is a feature
0 commit comments