Skip to content
Permalink
Browse files

Correctly convert null/unset OGRField values

  • Loading branch information
nyalldawson committed Apr 30, 2021
1 parent 65ec930 commit 54d50c6cd30085239cc0763205096e584316b01c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsogrutils.cpp
@@ -92,7 +92,7 @@ void gdal::GDALWarpOptionsDeleter::operator()( GDALWarpOptions *options )

QVariant QgsOgrUtils::OGRFieldtoVariant( const OGRField *value, OGRFieldType type )
{
if ( !value )
if ( !value || OGR_RawField_IsUnset( value ) || OGR_RawField_IsNull( value ) )
return QVariant();

switch ( type )

0 comments on commit 54d50c6

Please sign in to comment.