add a null check at the contact in ContactActivity
This commit is contained in:
parent
8a4c4f9324
commit
8dd3dd08cd
|
@ -42,7 +42,7 @@ abstract class ContactActivity : SimpleActivity() {
|
|||
photoView.setPadding(padding, padding, padding, padding)
|
||||
photoView.setImageBitmap(placeholder)
|
||||
currentContactPhotoPath = ""
|
||||
contact!!.photo = null
|
||||
contact?.photo = null
|
||||
}
|
||||
|
||||
fun updateContactPhoto(path: String, photoView: ImageView, bitmap: Bitmap? = null) {
|
||||
|
|
Loading…
Reference in New Issue