Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[server] Fix crash in WMS server when... bad things happen
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 1cff3b5 commit eb2c634
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 eb2c634

Please sign in to comment.