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 c09c301 commit f2273c6Copy full SHA for f2273c6
src/analysis/raster/qgsrastercalculator.cpp
@@ -112,6 +112,11 @@ int QgsRasterCalculator::processCalculation( QgsFeedback *feedback )
112
}
113
114
gdal::dataset_unique_ptr outputDataset( openOutputFile( outputDriver ) );
115
+ if ( !outputDataset )
116
+ {
117
+ return static_cast< int >( CreateOutputError );
118
+ }
119
+
120
GDALSetProjection( outputDataset.get(), mOutputCrs.toWkt().toLocal8Bit().data() );
121
GDALRasterBandH outputRasterBand = GDALGetRasterBand( outputDataset.get(), 1 );
122
0 commit comments