diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-11-17 14:52:00 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-11-17 14:54:32 +0000 |
commit | 506432f505b41e7f5b29cf8492caab4545a4548c (patch) | |
tree | 51eeeace5ac38e3d0216163b6803d6dda6acedbc /android | |
parent | 1b9956c2b150c37cf0e695f88bc0394f41d130a2 (diff) |
android: don't crash on empty filelist
Change-Id: I46caceed3fdf0ad0aa51c8a8ede1177ca3d1855e
Diffstat (limited to 'android')
-rw-r--r-- | android/source/src/java/org/libreoffice/ui/FileUtilities.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/android/source/src/java/org/libreoffice/ui/FileUtilities.java b/android/source/src/java/org/libreoffice/ui/FileUtilities.java index 16ca66b7a9d6..811fc4562dc7 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>() { |