This would be caused because no checks were made on the iterator to see
if it was valid or not.
striter = NotesListLangPtr->find(NotesListIndex);
- if (striter->first == NotesListIndex){
+ if (striter->first == NotesListIndex &&
+ striter != NotesListLangPtr->end()){
strValue = striter->second;
intiter = NotesListPrefPtr->find(NotesListIndex);
- if (intiter->first == NotesListIndex && intiter->second > 0){
+ if (intiter->first == NotesListIndex && intiter->second > 0 &&
+ intiter != NotesListPrefPtr->end()){
sliPriority->SetValue(intiter->second);
sliPriority->Enable();