[prev in list] [next in list] [prev in thread] [next in thread] 

List:       qgis-developer
Subject:    Re: [QGIS-Developer] NULL in field
From:       Andrea Giudiceandrea <andreaerdna () libero ! it>
Date:       2021-03-30 11:49:31
Message-ID: 1617104971913-0.post () n6 ! nabble ! com
[Download RAW message or body]

Giulio Fattori wrote
> @qgsfunction(args='auto', group='Custom')

Hi Giulio,
AFAIK you should add handlesnull=True to the function decorator in order to
properly handle parameter's NULL values in the function

@qgsfunction(args='auto', group='Custom', handlesnull=True)

See: https://qgis.org/pyqgis/master/core/qgsfunction.html#module-qgsfunction

Best regards.

Andrea



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html
_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic