summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/com/android/providers/downloads/DownloadStorageProvider.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/providers/downloads/DownloadStorageProvider.java b/src/com/android/providers/downloads/DownloadStorageProvider.java
index 0ef187ea..fb9392f9 100644
--- a/src/com/android/providers/downloads/DownloadStorageProvider.java
+++ b/src/com/android/providers/downloads/DownloadStorageProvider.java
@@ -381,7 +381,7 @@ public class DownloadStorageProvider extends DocumentsProvider {
// Verify that the document still exists in external storage. This is necessary
// because files can be deleted from the file system without their entry being
// removed from DownloadsManager.
- if (!new File(localFilePath).exists()) {
+ if (localFilePath == null || !new File(localFilePath).exists()) {
return;
}
extraFlags = Document.FLAG_SUPPORTS_RENAME; // only successful is non-partial