srsf/devasr/src/devasrrecognitionalgmgr.cpp
changeset 1 b13cd05eeb2f
parent 0 bf1d17376201
equal deleted inserted replaced
0:bf1d17376201 1:b13cd05eeb2f
   751         {
   751         {
   752         error = KErrArgument;
   752         error = KErrArgument;
   753         }
   753         }
   754     
   754     
   755     // Do not load empty lexicon
   755     // Do not load empty lexicon
   756     if ( iSILexicon->Count() == 0 )
   756     if ( iSILexicon && iSILexicon->Count() == 0 )
   757         {
   757         {
   758         iSILexicon = NULL;
   758         iSILexicon = NULL;
   759         iRecAlgMgrObserver->LoadLexiconComplete( KErrArgument );
   759         iRecAlgMgrObserver->LoadLexiconComplete( KErrArgument );
   760         return;
   760         return;
   761         }
   761         }
   842     else
   842     else
   843         {
   843         {
   844         error = KErrArgument;
   844         error = KErrArgument;
   845         }
   845         }
   846 
   846 
   847     if ( iSIModelBank->Count() < 1 )
   847     if ( iSIModelBank && iSIModelBank->Count() < 1 )
   848         {
   848         {
   849         iSIModelBank = NULL;
   849         iSIModelBank = NULL;
   850         iRecAlgMgrObserver->LoadModelsComplete( KErrArgument );
   850         iRecAlgMgrObserver->LoadModelsComplete( KErrArgument );
   851         return;
   851         return;
   852         }
   852         }