diff options
author | brainbreaker <gautamprajapati06@gmail.com> | 2017-02-12 11:42:38 +0530 |
---|---|---|
committer | Aleksandar Stefanović <theonewithideas@gmail.com> | 2017-02-16 14:35:06 +0000 |
commit | ba0f920cc141eb6ab896f650e9ac7b25ffe073a5 (patch) | |
tree | 8b194ea6bb0ea76525b51f0250ad6f9adc54b309 /android | |
parent | 7bb3643c6da11c580f4db64e3f052e97e59cdbe1 (diff) |
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@libreoffice.org>
Reviewed-by: Aleksandar Stefanović <theonewithideas@gmail.com>
Diffstat (limited to 'android')
-rw-r--r-- | android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java b/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java index 6921eeb4b50c..339348436a6d 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(); } } |