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