[mapserver-commits] r12612 - trunk/mapserver/mapcache/src
svn at osgeo.org
svn at osgeo.org
Mon Oct 3 02:55:54 EDT 2011
Author: tbonfort
Date: 2011-10-02 23:55:53 -0700 (Sun, 02 Oct 2011)
New Revision: 12612
Modified:
trunk/mapserver/mapcache/src/service_demo.c
Log:
fix failed wms demo when no source defined
Modified: trunk/mapserver/mapcache/src/service_demo.c
===================================================================
--- trunk/mapserver/mapcache/src/service_demo.c 2011-09-30 20:44:12 UTC (rev 12611)
+++ trunk/mapserver/mapcache/src/service_demo.c 2011-10-03 06:55:53 UTC (rev 12612)
@@ -513,7 +513,7 @@
caps = apr_psprintf(ctx->pool,"%s%s",caps,ol_layer);
}
}
- if(tileset->source->info_formats) {
+ if(tileset->source && tileset->source->info_formats) {
ol_layer = apr_psprintf(ctx->pool, demo_control_featureinfo,
tileset->name,
apr_pstrcat(ctx->pool,url_prefix,"?",NULL),
More information about the mapserver-commits
mailing list