Skip to content
Permalink
Browse files

Fix crash when changing raster data source

  • Loading branch information
github-actions authored and nirvn committed Feb 4, 2020
1 parent 2788cc9 commit b4142c3832b9f14de97df08caf20a06dee12c02f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgisapp.cpp
@@ -7386,7 +7386,7 @@ void QgisApp::changeDataSource( QgsMapLayer *layer )
{
subsetString = vlayer->dataProvider()->subsetString();
}
if ( subsetString.isEmpty() )
if ( vlayer && subsetString.isEmpty() )
{
// actually -- the above isn't true in all situations. If a layer was invalid at the time
// that the subset string was set, then ONLY the layer has knowledge of this subset string!

0 comments on commit b4142c3

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