diff options
-rw-r--r-- | packages/SharedStorageBackup/src/com/android/sharedstoragebackup/SharedStorageAgent.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SharedStorageBackup/src/com/android/sharedstoragebackup/SharedStorageAgent.java b/packages/SharedStorageBackup/src/com/android/sharedstoragebackup/SharedStorageAgent.java index e453cf5..2cd1f29 100644 --- a/packages/SharedStorageBackup/src/com/android/sharedstoragebackup/SharedStorageAgent.java +++ b/packages/SharedStorageBackup/src/com/android/sharedstoragebackup/SharedStorageAgent.java @@ -76,7 +76,7 @@ public class SharedStorageAgent extends FullBackupAgent { if (slash > 0) { try { int i = Integer.parseInt(relpath.substring(0, slash)); - if (i <= mVolumes.length) { + if (i < mVolumes.length) { outFile = new File(mVolumes[i].getPath(), relpath.substring(slash + 1)); if (DEBUG) Slog.i(TAG, " => " + outFile.getAbsolutePath()); } else { |