Skip to content

Commit f0e01d8

Browse files
committedJan 25, 2018
Fix crash
1 parent bf19eb6 commit f0e01d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/core/processing/qgsprocessingalgorithm.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,12 @@ void QgsProcessingAlgorithm::setProvider( QgsProcessingProvider *provider )
107107
{
108108
mProvider = provider;
109109

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

0 commit comments

Comments
 (0)
Please sign in to comment.