[Libreoffice-commits] core.git: Branch 'feature/tiled-editing' - android/experimental

Miklos Vajna vmiklos at collabora.co.uk
Tue Jan 13 03:49:35 PST 2015


 android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a71e4daad9cde44ac7896ae4488d61d17fedc796
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Tue Jan 13 12:48:58 2015 +0100

    android: if we don't have a document, then that can't be text
    
    Change-Id: I2b9e37aec2705ab723c11a0d1eb795aa5a63105e

diff --git a/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java b/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java
index fe389ef..8f4e56e 100644
--- a/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java
+++ b/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java
@@ -254,7 +254,7 @@ public class LOKitTileProvider implements TileProvider, Document.MessageCallback
 
     @Override
     public boolean isTextDocument() {
-        return mDocument.getDocumentType() == Document.DOCTYPE_TEXT;
+        return mDocument != null && mDocument.getDocumentType() == Document.DOCTYPE_TEXT;
     }
 
     @Override


More information about the Libreoffice-commits mailing list