Skip to content
Permalink
Browse files

Fix crash

  • Loading branch information
nyalldawson committed Jan 25, 2018
1 parent bf19eb6 commit f0e01d81f0b82c847defef1aa1e4b7f9ff6f9b85
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/processing/qgsprocessingalgorithm.cpp
@@ -107,12 +107,12 @@ void QgsProcessingAlgorithm::setProvider( QgsProcessingProvider *provider )
{
mProvider = provider;

if ( !mProvider->supportsNonFileBasedOutput() )
if ( mProvider && !mProvider->supportsNonFileBasedOutput() )
{
// need to update all destination parameters to turn off non file based outputs
Q_FOREACH ( const QgsProcessingParameterDefinition *definition, mParameters )
{
if ( definition->isDestination() && mProvider )
if ( definition->isDestination() )
{
const QgsProcessingDestinationParameter *destParam = static_cast< const QgsProcessingDestinationParameter *>( definition );
const_cast< QgsProcessingDestinationParameter *>( destParam )->setSupportsNonFileBasedOutput( false );

0 comments on commit f0e01d8

Please sign in to comment.
You can’t perform that action at this time.