internetradio2.0/cachemgmtsrc/ircachemgmt.cpp
changeset 11 f683e24efca3
parent 0 09774dfdd46b
--- a/internetradio2.0/cachemgmtsrc/ircachemgmt.cpp	Fri Jun 11 13:30:40 2010 +0300
+++ b/internetradio2.0/cachemgmtsrc/ircachemgmt.cpp	Wed Jun 23 18:04:00 2010 +0300
@@ -450,15 +450,16 @@
 				{
 				iPtrCategory->ResetAndDestroy();
 				}
+			else
+			{
+				break;
+			}
 			for(TInt iter=0;iter<aCountItems;iter++)
 				{
 				ptr=CIRBrowseCatagoryItems::NewL();
 				CleanupStack::PushL(ptr);
 				instream>>*ptr;
-			    if (iPtrCategory)
-				    {				
-				    iPtrCategory->AppendL(ptr);
-				    }
+				iPtrCategory->AppendL(ptr);
 				CleanupStack::Pop(ptr);
 				}
 	        CleanupStack::PopAndDestroy( &instream );