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