summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2013-03-26 17:29:43 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-03-26 17:29:43 +0000
commit7e9221c5548b711bb083589d2c0d32eb6cf2fb8d (patch)
tree11544a837d62cbb2dcbb0106b838f39f9708ab99
parent3be53a86dc5ee08e45c7fd657084107fa7ed2e1b (diff)
parent9ae62f59343ee88019be3beb1535f056c3cbaf1a (diff)
downloadframeworks_base-7e9221c5548b711bb083589d2c0d32eb6cf2fb8d.zip
frameworks_base-7e9221c5548b711bb083589d2c0d32eb6cf2fb8d.tar.gz
frameworks_base-7e9221c5548b711bb083589d2c0d32eb6cf2fb8d.tar.bz2
Merge "It helps to catch the right exception." into jb-mr2-dev
-rw-r--r--services/java/com/android/server/MountService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/java/com/android/server/MountService.java b/services/java/com/android/server/MountService.java
index c6aca2f..e8d7882 100644
--- a/services/java/com/android/server/MountService.java
+++ b/services/java/com/android/server/MountService.java
@@ -1603,7 +1603,7 @@ class MountService extends IMountService.Stub
boolean mounted = false;
try {
mounted = Environment.MEDIA_MOUNTED.equals(getVolumeState(primary.getPath()));
- } catch (IllegalStateException e) {
+ } catch (IllegalArgumentException e) {
}
if (!mounted) {