diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/PDFViewerActivity.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/PDFViewerActivity.kt index e471c4cf..4a99250d 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/PDFViewerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/PDFViewerActivity.kt @@ -89,7 +89,7 @@ class PDFViewerActivity : SimpleActivity() { .spacing(15) .onTap { toggleFullScreen() } .onError { - showErrorToast(it.localizedMessage.toString()) + showErrorToast(it.localizedMessage?.toString() ?: getString(R.string.unknown_error_occurred)) finish() } .load()