Please sign in to comment.
QgsRasterLayerZonalStatsAlgorithm::processAlgorithm(): fix (likely fa…
…lse positive) nullPointer cppcheck warning cppcheck warned about potential null pointer dereference of rasterBlock and zonesRasterBlock at line 242 ``` if ( !rasterBlock->isValid() || rasterBlock->isEmpty() || !zonesRasterBlock->isValid() || zonesRasterBlock->isEmpty() ) ``` It is likely that the logic about correctly prevented those null pointer from arising, but this wasn't immediately obvious. Make it so
- Loading branch information
Showing with 2 additions and 4 deletions.