summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2013-03-26 10:29:01 -0700
committerJean-Baptiste Queru <jbq@google.com>2013-03-26 10:36:01 -0700
commitd9fe2934d7145c9655650655ccc4e9cec776b314 (patch)
tree37e5030b8648928f2fb97f5e39f20ad37ec130b1 /services
parent2aee33c1cdf89c0754bb660cd2e0ec95a007d4a8 (diff)
downloadframeworks_base-d9fe2934d7145c9655650655ccc4e9cec776b314.zip
frameworks_base-d9fe2934d7145c9655650655ccc4e9cec776b314.tar.gz
frameworks_base-d9fe2934d7145c9655650655ccc4e9cec776b314.tar.bz2
It helps to catch the right exception.
Bug: 7238149 Change-Id: I7b60ec44d1d1d5ece8a871cb089f811b611f4a4a
Diffstat (limited to 'services')
-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 2e0c977..ce83a45 100644
--- a/services/java/com/android/server/MountService.java
+++ b/services/java/com/android/server/MountService.java
@@ -1577,7 +1577,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) {