summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
Diffstat (limited to 'android')
-rw-r--r--android/src/com/artifex/mupdf/ChoosePDFActivity.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/android/src/com/artifex/mupdf/ChoosePDFActivity.java b/android/src/com/artifex/mupdf/ChoosePDFActivity.java
index 1171f55c..5b41e979 100644
--- a/android/src/com/artifex/mupdf/ChoosePDFActivity.java
+++ b/android/src/com/artifex/mupdf/ChoosePDFActivity.java
@@ -65,8 +65,9 @@ public class ChoosePDFActivity extends ListActivity {
});
List<String> fileNames = new ArrayList<String>();
- for (File f : mFiles)
- fileNames.add(f.getName());
+ if (mFiles != null)
+ for (File f : mFiles)
+ fileNames.add(f.getName());
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, R.layout.picker_entry, fileNames);
setListAdapter(adapter);