userlibandfileserver/fileserver/sfat32/sl_drv.cpp
branchRCL_3
changeset 87 2f92ad2dc5db
parent 62 4a8fed1c0ef6
child 147 bbf8bed59bcb
--- a/userlibandfileserver/fileserver/sfat32/sl_drv.cpp	Mon Mar 15 12:45:50 2010 +0200
+++ b/userlibandfileserver/fileserver/sfat32/sl_drv.cpp	Wed Mar 31 23:38:45 2010 +0300
@@ -1,4 +1,4 @@
-// Copyright (c) 1996-2009 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 1996-2010 Nokia Corporation and/or its subsidiary(-ies).
 // All rights reserved.
 // This component and the accompanying materials are made available
 // under the terms of the License "Eclipse Public License v1.0"
@@ -47,7 +47,7 @@
 */
 void TDriveInterface::Close()
 {
-	 if(iMount)
+	 if((iMount != NULL) && (iMount->LocalDrive() != NULL))
 		{
 		iMount->LocalDrive()->SetMount(NULL);
         }