This would be caused because no checks were made on the iterator to see
if it was valid or not.
striter = VendorListElementPtr->find(VendorListIndex);
- if (striter->first == VendorListIndex){
+ if (striter->first == VendorListIndex &&
+ striter != VendorListElementPtr->end()){
strValue = striter->second;
striter = VendorListPtr->find(VendorListIndex);
- if (striter->first == VendorListIndex){
+ if (striter->first == VendorListIndex &&
+ striter != VendorListPtr->end()){
strValue = striter->second;