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