--- a/userlibandfileserver/fileserver/sfile/sf_thread.cpp Mon Jun 21 17:12:14 2010 +0300
+++ b/userlibandfileserver/fileserver/sfile/sf_thread.cpp Thu Jul 15 20:11:42 2010 +0300
@@ -834,10 +834,9 @@
//
{
__ASSERT_ALWAYS(FsThreadManager::IsDriveThread(iDriveNumber,EFalse),Fault(EDriveThreadNotifyUser1));
- // NB For read-ahead or a flush-dirty write request generated by the file cache, the session will be NULL:
+ // NB For read-ahead or a flush-dirty write request generated by the file cache, the request or the session may be NULL:
// in this case assume that notify user is set (as it's the safest option)
- CSessionFs* session = iRequest->Session();
- return session ? session->GetNotifyUser() : ETrue;
+ return iRequest && iRequest->Session() ? iRequest->Session()->GetNotifyUser() : ETrue;
}
void CDriveThread::StartFinalisationTimer()