Skip to content

Commit 260b493

Browse files
committed
fix crash when no frame in griddeed data
1 parent 6e33274 commit 260b493

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/data/reosgriddeddata.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,9 @@ void ReosDataGriddedOnWatershed::launchCalculation()
348348
{
349349
AverageCalculation *newCalc = getCalculationProcess();
350350

351+
if ( !newCalc )
352+
return;
353+
351354
QObject::connect( newCalc, &ReosProcess::finished, newCalc, [newCalc, this]
352355
{
353356
if ( mCurrentCalculation == newCalc )

0 commit comments

Comments
 (0)