[mapguide-commits] r4440 - trunk/MgDev/Common/MapGuideCommon/Services

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Tue Dec 15 15:35:28 EST 2009


Author: brucedechant
Date: 2009-12-15 15:35:26 -0500 (Tue, 15 Dec 2009)
New Revision: 4440

Modified:
   trunk/MgDev/Common/MapGuideCommon/Services/SiteManager.cpp
Log:
Fix for trac ticket 1131 - Load balancing doesn't support fail over
http://trac.osgeo.org/mapguide/ticket/1131

Notes:
- Add NULL pointer check in case server doesn't exist


Modified: trunk/MgDev/Common/MapGuideCommon/Services/SiteManager.cpp
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/Services/SiteManager.cpp	2009-12-15 07:49:25 UTC (rev 4439)
+++ trunk/MgDev/Common/MapGuideCommon/Services/SiteManager.cpp	2009-12-15 20:35:26 UTC (rev 4440)
@@ -325,7 +325,7 @@
                 length - MgSiteInfo::HexStringLength, MgSiteInfo::HexStringLength);
             Ptr<MgSiteInfo> siteInfo = GetSiteInfo(siteHexString);
 
-            if (MgSiteInfo::Ok == siteInfo->GetStatus())
+			if ((NULL != siteInfo.p) && (MgSiteInfo::Ok == siteInfo->GetStatus()))
             {
                 connProps = GetConnectionProperties(userInfo, siteInfo, portType);
             }



More information about the mapguide-commits mailing list