Skip to content

Commit

Permalink
[BUGFIX][Server] Segfault in WCS
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Apr 12, 2018
1 parent 04ef496 commit 27fa062
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/server/services/wcs/qgswcsdescribecoverage.cpp
Expand Up @@ -98,6 +98,10 @@ namespace QgsWcs
for ( int i = 0; i < wcsLayersId.size(); ++i )
{
QgsMapLayer *layer = project->mapLayer( wcsLayersId.at( i ) );
if ( !layer )
{
continue;
}
if ( layer->type() != QgsMapLayer::LayerType::RasterLayer )
{
continue;
Expand Down
4 changes: 4 additions & 0 deletions src/server/services/wcs/qgswcsgetcapabilities.cpp
Expand Up @@ -264,6 +264,10 @@ namespace QgsWcs
for ( int i = 0; i < wcsLayersId.size(); ++i )
{
QgsMapLayer *layer = project->mapLayer( wcsLayersId.at( i ) );
if ( !layer )
{
continue;
}
if ( layer->type() != QgsMapLayer::LayerType::RasterLayer )
{
continue;
Expand Down
4 changes: 4 additions & 0 deletions src/server/services/wcs/qgswcsgetcoverage.cpp
Expand Up @@ -79,6 +79,10 @@ namespace QgsWcs
for ( int i = 0; i < wcsLayersId.size(); ++i )
{
QgsMapLayer *layer = project->mapLayer( wcsLayersId.at( i ) );
if ( !layer )
{
continue;
}
if ( layer->type() != QgsMapLayer::LayerType::RasterLayer )
{
continue;
Expand Down

0 comments on commit 27fa062

Please sign in to comment.