diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2013-04-01 17:26:19 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2013-04-01 17:26:20 +0000 |
commit | b7aca350e4c46bbc431f2ecaa4d8cee87915fe8b (patch) | |
tree | 362f3fb28ec9e3cbf9a88b53c8ebd64cebf725c7 /services | |
parent | 55e9d98d990f7a015d4c10f5e5a92ae131637073 (diff) | |
parent | d9fe2934d7145c9655650655ccc4e9cec776b314 (diff) | |
download | frameworks_base-b7aca350e4c46bbc431f2ecaa4d8cee87915fe8b.zip frameworks_base-b7aca350e4c46bbc431f2ecaa4d8cee87915fe8b.tar.gz frameworks_base-b7aca350e4c46bbc431f2ecaa4d8cee87915fe8b.tar.bz2 |
Merge "It helps to catch the right exception."
Diffstat (limited to 'services')
-rw-r--r-- | services/java/com/android/server/MountService.java | 2 |
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) { |