diff options
-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"); } /** |