csxhelp/HelpEngine/src/CSXHHTMLContentParser.cpp
changeset 1 27f5851bd5a5
parent 0 1f04cf54edd8
child 5 d06b1526f62c
--- a/csxhelp/HelpEngine/src/CSXHHTMLContentParser.cpp	Tue Jan 26 15:15:23 2010 +0200
+++ b/csxhelp/HelpEngine/src/CSXHHTMLContentParser.cpp	Tue Feb 02 00:03:40 2010 +0200
@@ -241,7 +241,7 @@
     if(BaflUtils::FileExists( FileSession,masterFile ) )
         {
 #ifdef _DEBUG
-        RDebug::Print(_L("index exist begin to parse!    %c"), aDrive );
+        RDebug::Print(_L("index exist begin to parse!    %c"), TUint( aDrive ) );
 #endif
         CCSXHXMLParseHandler_MasterMetaFile* masterMetaHandler = 
         CCSXHXMLParseHandler_MasterMetaFile::NewL(iCoeEnv);
@@ -356,6 +356,10 @@
 					{
 		            CCSXHHtmlTOC1* CategoryObj = CCSXHHtmlTOC1::NewL(
 		                                        XMLParser->GetApplicationName(),entry.iName,aDrive);
+		            if ( !CategoryObj )
+		                {
+		                continue;
+		                }
 		            iIndexing->RuntimeGenerateIndexL( *CategoryObj, XMLParser->GetFeatureIds() );
 		            if(CategoryObj && aDataBase->GetMainTopics()->InsertChild(CategoryObj,EFalse))
 		            	iHtmlTOC1List.Append(CategoryObj);//Keep a local copy*/