Skip to content

Commit ba8b9c1

Browse files
committed
adding 2 more crashfixes
1 parent 251df88 commit ba8b9c1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/EditContactActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ class EditContactActivity : ContactActivity() {
901901
return
902902
}
903903

904-
contact!!.apply {
904+
contact?.apply {
905905
val oldPhotoUri = photoUri
906906

907907
prefix = contact_prefix.value

app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/ViewContactActivity.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ class ViewContactActivity : ContactActivity() {
9292
(contact_appbar.layoutParams as RelativeLayout.LayoutParams).topMargin = statusBarHeight
9393
contact_toolbar.menu.apply {
9494
findItem(R.id.share).setOnMenuItemClickListener {
95-
shareContact(fullContact!!)
95+
if (fullContact != null) {
96+
shareContact(fullContact!!)
97+
}
9698
true
9799
}
98100

0 commit comments

Comments
 (0)