We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 097a437 commit 5812934Copy full SHA for 5812934
src/app/qgisapp.cpp
@@ -12028,7 +12028,10 @@ QgsRasterLayer *QgisApp::addRasterLayerPrivate(
12028
// Let render() do its own cursor management
12029
// QApplication::restoreOverrideCursor();
12030
}
12031
- layer->loadDefaultMetadata( ok );
+
12032
+ if ( layer )
12033
+ layer->loadDefaultMetadata( ok );
12034
12035
return layer;
12036
12037
} // QgisApp::addRasterLayer
0 commit comments