aboutsummaryrefslogtreecommitdiffstats
path: root/src/cgeo/geocaching/files/FileList.java
diff options
context:
space:
mode:
authorBananeweizen <Bananeweizen@gmx.de>2011-09-03 11:44:37 -0700
committerBananeweizen <Bananeweizen@gmx.de>2011-09-03 11:44:37 -0700
commit5878215750b36147e31d4e44d39f5cee5a686a24 (patch)
tree05ed634bef7aa97c6aef53dca0bae8947b790669 /src/cgeo/geocaching/files/FileList.java
parent1ca5b0ddbe8ecaa67b1606f386ae398c0bf8da10 (diff)
parent5d6cd5f76c3682f70e4fa18182849fb2110a6aca (diff)
downloadcgeo-5878215750b36147e31d4e44d39f5cee5a686a24.zip
cgeo-5878215750b36147e31d4e44d39f5cee5a686a24.tar.gz
cgeo-5878215750b36147e31d4e44d39f5cee5a686a24.tar.bz2
Merge pull request #359 from gezb/301
Fix for issue #301 - include Apache commons lang library
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;