diff -r e96e8a131979 -r 6971d1c87c9a charconvfw/numbergrouping/Src/StateMachine.cpp --- a/charconvfw/numbergrouping/Src/StateMachine.cpp Sat Feb 20 00:37:46 2010 +0200 +++ b/charconvfw/numbergrouping/Src/StateMachine.cpp Fri Mar 12 15:51:09 2010 +0200 @@ -71,7 +71,7 @@ void CStateMachine::AddStateTransistionL(TInt aIndex, TInt aState, TInt aNextState) { - if(aIndex > iMaxNumberChars || aState > iMaxNumberStates || aNextState > iMaxNumberStates) + if(aIndex < 0 || aIndex > iMaxNumberChars || aState > iMaxNumberStates || aNextState > iMaxNumberStates) User::Leave(KErrGeneral); iStateTable[static_cast(aIndex)][static_cast(aState)] = static_cast(aNextState);