diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/com/cyanogenmod/explorer/util/FileHelper.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/com/cyanogenmod/explorer/util/FileHelper.java b/src/com/cyanogenmod/explorer/util/FileHelper.java index bd57717..4169b0a 100644 --- a/src/com/cyanogenmod/explorer/util/FileHelper.java +++ b/src/com/cyanogenmod/explorer/util/FileHelper.java @@ -737,10 +737,12 @@ public final class FileHelper { return false; } String ext = getExtension(fso); - int cc = VALID.length; - for (int i = 0; i < cc; i++) { - if (VALID[i].compareTo(ext) == 0) { - return true; + if (ext != null) { + int cc = VALID.length; + for (int i = 0; i < cc; i++) { + if (VALID[i].compareTo(ext) == 0) { + return true; + } } } return false; |
