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 ae3db0a commit e49661d
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

2 comments on commit e49661d

@elpaso
Copy link
Contributor

@elpaso elpaso commented on e49661d Jul 14, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This rings me a bell, @Gustry does this have anything to do with what we've observed in Girona while you were generating a project on the fly form Python server code (and no canvas) ?
@m-kuhn was it a "normal" project generated from QGIS desktop?

@m-kuhn
Copy link
Member Author

@m-kuhn m-kuhn commented on e49661d Jul 14, 2016 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.