--- a/libraries/iosrv/server/session.cpp Fri Nov 05 11:46:32 2010 +0000
+++ b/libraries/iosrv/server/session.cpp Sat Nov 06 16:46:13 2010 +0000
@@ -50,13 +50,16 @@
CIoSession::~CIoSession()
{
delete iFindByNameMatch;
- const TInt maxNumObjects = iHandles->Count();
- for (TInt i = 0; i < maxNumObjects; ++i)
+ if (iHandles)
{
- CIoObject* obj = static_cast<CIoObject*>((*iHandles)[i]);
- if (obj != NULL)
+ const TInt maxNumObjects = iHandles->Count();
+ for (TInt i = 0; i < maxNumObjects; ++i)
{
- obj->SessionClosed(*this);
+ CIoObject* obj = static_cast<CIoObject*>((*iHandles)[i]);
+ if (obj != NULL)
+ {
+ obj->SessionClosed(*this);
+ }
}
}
Server().DropSession();