diff --git a/services/java/com/android/server/MountService.java b/services/java/com/android/server/MountService.java index 413d66f3ddf9c..6c2f1b2d77b8d 100644 --- a/services/java/com/android/server/MountService.java +++ b/services/java/com/android/server/MountService.java @@ -642,8 +642,9 @@ class MountService extends IMountService.Stub } private boolean doGetShareMethodAvailable(String method) { + ArrayList rsp; try { - ArrayList rsp = mConnector.doCommand("share status " + method); + rsp = mConnector.doCommand("share status " + method); } catch (NativeDaemonConnectorException ex) { Slog.e(TAG, "Failed to determine whether share method " + method + " is available."); return false;