From: Steve Brokenshire Date: Sat, 28 May 2016 07:03:50 +0000 (+0100) Subject: Check if std::string version of ProcessSaveDataStrProc has data before processing X-Git-Tag: release-0.13~2 X-Git-Url: http://Server1/repobrowser/?p=xestiaab%2F.git;a=commitdiff_plain;h=1c4d53efb070de9845e7c218ff1f12ebe2f98625 Check if std::string version of ProcessSaveDataStrProc has data before processing --- diff --git a/source/contacteditor/frmContactEditor.cpp b/source/contacteditor/frmContactEditor.cpp index 22de535..4acb350 100644 --- a/source/contacteditor/frmContactEditor.cpp +++ b/source/contacteditor/frmContactEditor.cpp @@ -486,8 +486,16 @@ void frmContactEditor::ProcessSaveDataStrProc( wxString PropName, strIter = MapData->find(intIterVal); + if (strIter == MapData->end()){ + + // Ignore this section and return. + + return; + + } + wxString strPropValue; - + if (strIter->first == intIterVal){ strPropValue = strIter->second;