[Libreoffice-commits] core.git: android/source

brainbreaker gautamprajapati06 at gmail.com
Thu Feb 16 14:35:29 UTC 2017


 android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit ba0f920cc141eb6ab896f650e9ac7b25ffe073a5
Author: brainbreaker <gautamprajapati06 at gmail.com>
Date:   Sun Feb 12 11:42:38 2017 +0530

    Fixed the runtime crash of app by catching exception
    
    Steps to reproduce crash: Click on remote server option in navigation menu, in case of invalid server URL it will show a toast. Then click on Storage Provider Settings once and press back, app will crash throwing runtime exception.
    The exception is not catched anywhere so Java runtime exits the app
    
    Change-Id: I2bccca633e62fec82c868661f14765596c4b83f1
    Reviewed-on: https://gerrit.libreoffice.org/34166
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Aleksandar Stefanović <theonewithideas at gmail.com>

diff --git a/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java b/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java
index 6921eeb..3393484 100644
--- a/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java
+++ b/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java
@@ -147,6 +147,8 @@ public class LibreOfficeUIActivity extends AppCompatActivity implements Settings
                 recentFiles.add(documentProvider.createFromUri(new URI(recentFileString)));
             } catch (URISyntaxException e) {
                 e.printStackTrace();
+            } catch (RuntimeException e){
+                e.printStackTrace();
             }
         }
 


More information about the Libreoffice-commits mailing list