diff -r 4ae315f230bc -r a6539d1e8e43 predictivesearch/PcsUtils/src/CPsQuery.cpp --- a/predictivesearch/PcsUtils/src/CPsQuery.cpp Tue May 25 12:26:45 2010 +0300 +++ b/predictivesearch/PcsUtils/src/CPsQuery.cpp Wed Jun 09 09:26:27 2010 +0300 @@ -94,7 +94,7 @@ // ---------------------------------------------------------------------------- EXPORT_C CPsQueryItem& CPsQuery:: GetItemAtL(TInt aIndex) { - if ( aIndex < 0 && aIndex >= iSearchQuery.Count()) + if ( aIndex < 0 || aIndex >= iSearchQuery.Count()) { User::Leave(KErrArgument); }