aboutsummaryrefslogtreecommitdiffstats
path: root/src/cgeo/geocaching/files/FileList.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgeo/geocaching/files/FileList.java')
-rw-r--r--src/cgeo/geocaching/files/FileList.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cgeo/geocaching/files/FileList.java b/src/cgeo/geocaching/files/FileList.java
index eae1e4d..ceb17a7 100644
--- a/src/cgeo/geocaching/files/FileList.java
+++ b/src/cgeo/geocaching/files/FileList.java
@@ -3,6 +3,8 @@ package cgeo.geocaching.files;
import java.io.File;
import java.util.ArrayList;
+import org.apache.commons.lang3.ArrayUtils;
+
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.os.Bundle;
@@ -185,7 +187,7 @@ public abstract class FileList<T extends ArrayAdapter<File>> extends AbstractLis
final File[] files = directory.listFiles();
- if (files != null && files.length > 0) {
+ if (ArrayUtils.isNotEmpty(files)) {
for (File file : files) {
if (endSearching) {
return;