[Libreoffice-commits] core.git: android/source
Caolán McNamara
caolanm at redhat.com
Tue Nov 17 06:55:39 PST 2015
android/source/src/java/org/libreoffice/ui/FileUtilities.java | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 506432f505b41e7f5b29cf8492caab4545a4548c
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Nov 17 14:52:00 2015 +0000
android: don't crash on empty filelist
Change-Id: I46caceed3fdf0ad0aa51c8a8ede1177ca3d1855e
diff --git a/android/source/src/java/org/libreoffice/ui/FileUtilities.java b/android/source/src/java/org/libreoffice/ui/FileUtilities.java
index 16ca66b..811fc45 100644
--- a/android/source/src/java/org/libreoffice/ui/FileUtilities.java
+++ b/android/source/src/java/org/libreoffice/ui/FileUtilities.java
@@ -200,6 +200,8 @@ public class FileUtilities {
}
static void sortFiles(List<IFile> files, int sortMode) {
+ if (files == null)
+ return;
switch (sortMode) {
case SORT_AZ:
Collections.sort(files , new Comparator<IFile>() {
More information about the Libreoffice-commits
mailing list