summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/java/android/storage/StorageManager.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/storage/StorageManager.java b/core/java/android/storage/StorageManager.java
index dd8bd63..924d169 100644
--- a/core/java/android/storage/StorageManager.java
+++ b/core/java/android/storage/StorageManager.java
@@ -254,6 +254,10 @@ public class StorageManager
*/
public StorageManager(Looper tgtLooper) throws RemoteException {
mMountService = IMountService.Stub.asInterface(ServiceManager.getService("mount"));
+ if (mMountService == null) {
+ Log.e(TAG, "Unable to connect to mount service! - is it running yet?");
+ return;
+ }
mTgtLooper = tgtLooper;
mBinderListener = new MountServiceBinderListener();
mMountService.registerListener(mBinderListener);