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