Permalink
Browse files

Merge "It helps to catch the right exception." into jb-mr1

  • Loading branch information...
2 parents 47d9f2d + a33e121 commit 0f765505b13db55f5a7b3bab02a448dffc814ffa @sethyx sethyx committed with Gerrit Code Review Apr 5, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 services/java/com/android/server/MountService.java
@@ -1618,7 +1618,7 @@ private void warnOnNotMounted() {
boolean mounted = false;
try {
mounted = Environment.MEDIA_MOUNTED.equals(getVolumeState(primary.getPath()));
- } catch (IllegalStateException e) {
+ } catch (IllegalArgumentException e) {
}
if (!mounted) {

0 comments on commit 0f76550

Please sign in to comment.