diff --git a/android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java b/android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java index 95c90de9b69a..8354dca63aa3 100755 --- a/android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java +++ b/android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java @@ -414,7 +414,7 @@ public class LibreOfficeMainActivity extends AppCompatActivity implements Settin // noinspection ResultOfMethodCallIgnored mTempFile.delete(); } - if (mTempSlideShowFile.exists()) { + if (mTempSlideShowFile != null && mTempSlideShowFile.exists()) { // noinspection ResultOfMethodCallIgnored mTempSlideShowFile.delete(); }