[mapguide-commits] r6479 - trunk/MgDev/Common/MdfParser
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Fri Feb 3 00:09:10 EST 2012
Author: sparkliu
Date: 2012-02-02 21:09:09 -0800 (Thu, 02 Feb 2012)
New Revision: 6479
Modified:
trunk/MgDev/Common/MdfParser/IOGridColor.cpp
Log:
Fix ticket #1946:
Add check for NULL pointer.
Modified: trunk/MgDev/Common/MdfParser/IOGridColor.cpp
===================================================================
--- trunk/MgDev/Common/MdfParser/IOGridColor.cpp 2012-02-03 01:56:19 UTC (rev 6478)
+++ trunk/MgDev/Common/MdfParser/IOGridColor.cpp 2012-02-03 05:09:09 UTC (rev 6479)
@@ -146,7 +146,8 @@
IOGridColorBands::Write(fd, colorBands, version, tab);
// Write any unknown XML / extended data
- IOUnknown::Write(fd, color->GetUnknownXml(), version, tab);
+ if(color)
+ IOUnknown::Write(fd, color->GetUnknownXml(), version, tab);
tab.dectab();
fd << tab.tab() << endStr(sColor) << std::endl;
More information about the mapguide-commits
mailing list