--- a/srsf/devasr/src/devasrrecognitionalgmgr.cpp Thu Dec 17 08:46:30 2009 +0200
+++ b/srsf/devasr/src/devasrrecognitionalgmgr.cpp Mon Jan 18 20:20:30 2010 +0200
@@ -753,7 +753,7 @@
}
// Do not load empty lexicon
- if ( iSILexicon->Count() == 0 )
+ if ( iSILexicon && iSILexicon->Count() == 0 )
{
iSILexicon = NULL;
iRecAlgMgrObserver->LoadLexiconComplete( KErrArgument );
@@ -844,7 +844,7 @@
error = KErrArgument;
}
- if ( iSIModelBank->Count() < 1 )
+ if ( iSIModelBank && iSIModelBank->Count() < 1 )
{
iSIModelBank = NULL;
iRecAlgMgrObserver->LoadModelsComplete( KErrArgument );