diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2021-06-11 13:55:43 +0200 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2021-06-13 20:49:21 +0200 |
commit | 6bfa94398a0ea501fce7634ab0ae9ce35c442043 (patch) | |
tree | d8f229a5bd57df3e140ff1543cda0fd1377caee2 /android | |
parent | d5823a0dc5e75b2d6440bdc64c934648b2657244 (diff) |
tdf#142618 android: Don't crash when passed MIME type is null
Change-Id: I5fb532b36fe650596f25a1ba8b7dc56e21292dc1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117053
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'android')
-rw-r--r-- | android/source/src/java/org/libreoffice/ui/FileUtilities.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/android/source/src/java/org/libreoffice/ui/FileUtilities.java b/android/source/src/java/org/libreoffice/ui/FileUtilities.java index 4c9c0d6d10eb..5bfb93b4c1f5 100644 --- a/android/source/src/java/org/libreoffice/ui/FileUtilities.java +++ b/android/source/src/java/org/libreoffice/ui/FileUtilities.java @@ -121,7 +121,7 @@ public class FileUtilities { */ public static boolean isTemplateMimeType(final String mimeType) { // this works for ODF and OOXML template MIME types - return mimeType.endsWith("template"); + return mimeType != null && mimeType.endsWith("template"); } /** |