perfsrv/analyzetool/kerneleventhandler/src/analyzetooleventhandler.cpp
changeset 52 c2f44e33b468
parent 51 98307c651589
--- a/perfsrv/analyzetool/kerneleventhandler/src/analyzetooleventhandler.cpp	Mon Sep 06 15:00:47 2010 +0300
+++ b/perfsrv/analyzetool/kerneleventhandler/src/analyzetooleventhandler.cpp	Mon Sep 20 12:20:18 2010 +0300
@@ -333,14 +333,14 @@
     // Aqcuire the data mutex
     Kern::MutexWait( *iDataMutex );
     
-    aInfo.iProcessId = aThread->iOwningProcess->iId;
-    TBool alone( aThread->iOwningProcess->iThreadQ.First()->Alone() );
-    LOGSTR2( "ATDD > Is alone = %d", alone );
-    
-    // Check if this our process and is the only thread item.
-    if ( aInfo.iProcessId == iProcessId && !alone )
+    if ( aThread )
         {
-        if ( aThread )
+        aInfo.iProcessId = aThread->iOwningProcess->iId;
+        TBool alone( aThread->iOwningProcess->iThreadQ.First()->Alone() );
+        LOGSTR2( "ATDD > Is alone = %d", alone );
+        
+        // Check if this our process and is the only thread item.
+        if ( aInfo.iProcessId == iProcessId && !alone )
             {
             // Set current Thread id
             LOGSTR2( "ATDD > Thread ID = %d", aThread->iId );