Skip to content

Commit

Permalink
[server] Fix crash in WMS server when... bad things happen
Browse files Browse the repository at this point in the history
No idea what exactly the reason is, and it was only discovered by
countless hours of printf-debugging. So I'm just pushing the fix
for everyone else who might be affected.
  • Loading branch information
m-kuhn committed Jul 12, 2016
1 parent bfe4e90 commit 10b7beb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/server/qgswmsprojectparser.cpp
Expand Up @@ -1146,6 +1146,11 @@ void QgsWMSProjectParser::addLayers( QDomDocument &doc,
}
}

if ( !ltGroup )
{
QgsDebugMsg( QString( "Skipping group %1, it could not be found" ).arg( name ) );
continue;
}
QString shortName = ltGroup->customProperty( "wmsShortName" ).toString();
QString title = ltGroup->customProperty( "wmsTitle" ).toString();

Expand Down

0 comments on commit 10b7beb

Please sign in to comment.