- extension for ErrorHelperActiviity to prevent NPE

This commit is contained in:
Andy Rozman 2019-12-30 18:43:44 +01:00
parent 9de968cb26
commit 1668b2634c

View file

@ -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)) {