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