[mapserver-commits] r7641 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Mon Jun 2 23:27:26 EDT 2008


Author: tomkralidis
Date: 2008-06-02 23:27:26 -0400 (Mon, 02 Jun 2008)
New Revision: 7641

Modified:
   trunk/mapserver/mapwcs.c
Log:
test if metadata is set (#2509)


Modified: trunk/mapserver/mapwcs.c
===================================================================
--- trunk/mapserver/mapwcs.c	2008-06-03 00:52:49 UTC (rev 7640)
+++ trunk/mapserver/mapwcs.c	2008-06-03 03:27:26 UTC (rev 7641)
@@ -59,6 +59,9 @@
     /* fetch value of tmpname (%s_values)*/
     tmpvalue = msOWSLookupMetadata(&(lp->metadata), "COM", tmpname);
 
+    if (tmpvalue == NULL) 
+      return MS_FAILURE;
+
     /* split tmpvalue and loop through to find match */
     tokens = msStringSplit(tmpvalue, ',', &numtokens);
     if(tokens && numtokens > 0) {



More information about the mapserver-commits mailing list