Skip to content
Permalink
Browse files

[bugfix] Fix crash on bad raster layers, fixes #17938

  • Loading branch information
elpaso committed Jan 24, 2018
1 parent 097a437 commit 5812934c69c859723c665ae6bd38bb25d57a3eea
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/app/qgisapp.cpp
@@ -12028,7 +12028,10 @@ QgsRasterLayer *QgisApp::addRasterLayerPrivate(
// Let render() do its own cursor management
// QApplication::restoreOverrideCursor();
}
layer->loadDefaultMetadata( ok );

if ( layer )
layer->loadDefaultMetadata( ok );

return layer;

} // QgisApp::addRasterLayer

0 comments on commit 5812934

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