From 1c4d53efb070de9845e7c218ff1f12ebe2f98625 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sat, 28 May 2016 08:03:50 +0100 Subject: [PATCH] Check if std::string version of ProcessSaveDataStrProc has data before processing --- source/contacteditor/frmContactEditor.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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; -- 2.39.2