resourcemgmt/hwresourcesmgr/server/src/HWRMPowerCommonData.cpp
changeset 45 c6215323ad55
parent 0 4e1aa6a622a0
child 52 d6b9e89d80a3
--- a/resourcemgmt/hwresourcesmgr/server/src/HWRMPowerCommonData.cpp	Wed Jun 23 19:38:32 2010 +0300
+++ b/resourcemgmt/hwresourcesmgr/server/src/HWRMPowerCommonData.cpp	Tue Jul 06 15:43:30 2010 +0300
@@ -166,10 +166,13 @@
     delete iPowerService;
     iPowerService = NULL;
     
-    iMaxReportingPeriodNotifyHandler->StopListening();
-    delete iMaxReportingPeriodNotifyHandler;
-    iMaxReportingPeriodNotifyHandler =  NULL;
-
+    if (iMaxReportingPeriodNotifyHandler)
+    	{
+	    iMaxReportingPeriodNotifyHandler->StopListening();
+	    delete iMaxReportingPeriodNotifyHandler;
+	    iMaxReportingPeriodNotifyHandler =  NULL;
+    	}
+    	
     delete iRepository;  
     iRepository = NULL;