diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/dialogs/ErrorHelperActivity.kt b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/dialogs/ErrorHelperActivity.kt index 276dfb2a6c..87f66febf0 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/dialogs/ErrorHelperActivity.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/dialogs/ErrorHelperActivity.kt @@ -16,7 +16,8 @@ class ErrorHelperActivity : NoSplashAppCompatActivity() { errorDialog.status = intent.getStringExtra("status") errorDialog.sound = intent.getIntExtra("soundid", R.raw.error) errorDialog.title = intent.getStringExtra("title") - errorDialog.clipboardContent = intent.getStringExtra("clipboardContent") + if (intent.hasExtra("clipboardContent")) + errorDialog.clipboardContent = intent.getStringExtra("clipboardContent") errorDialog.show(supportFragmentManager, "Error") if (SP.getBoolean(R.string.key_ns_create_announcements_from_errors, true)) {