diff -r 1c556dee8eb1 -r eb6690d0d439 omaprovisioning/provisioning/ProvisioningEngine/Src/CWPMultiContextManager.cpp --- a/omaprovisioning/provisioning/ProvisioningEngine/Src/CWPMultiContextManager.cpp Fri Aug 06 18:29:23 2010 +0530 +++ b/omaprovisioning/provisioning/ProvisioningEngine/Src/CWPMultiContextManager.cpp Thu Aug 19 17:35:34 2010 +0530 @@ -405,8 +405,9 @@ new(ELeave) CArrayFixFlat( Max( 1, contexts.CountL() ) ); CleanupStack::PushL( array ); FTRACE(RDebug::Print(_L("[Provisioning] CWPMultiContextManager::ContextUidsL: count (%d)"), contexts.CountL())); - contexts.FirstL(); - while( contexts.AtRow() ) + if ( contexts.FirstL()) + { + while( contexts.AtRow() ) { FLOG( _L( "[Provisioning] CWPMultiContextManager::ContextUidsL contexts.GetL()" ) ); contexts.GetL(); @@ -415,6 +416,7 @@ array->AppendL( uid ); contexts.NextL(); } + } CleanupStack::Pop(); // array CleanupStack::PopAndDestroy(); // contexts