add a null check at the contact in ContactActivity

This commit is contained in:
tibbi 2018-02-21 15:33:35 +01:00
parent 8a4c4f9324
commit 8dd3dd08cd

View File

@ -42,7 +42,7 @@ abstract class ContactActivity : SimpleActivity() {
photoView.setPadding(padding, padding, padding, padding) photoView.setPadding(padding, padding, padding, padding)
photoView.setImageBitmap(placeholder) photoView.setImageBitmap(placeholder)
currentContactPhotoPath = "" currentContactPhotoPath = ""
contact!!.photo = null contact?.photo = null
} }
fun updateContactPhoto(path: String, photoView: ImageView, bitmap: Bitmap? = null) { fun updateContactPhoto(path: String, photoView: ImageView, bitmap: Bitmap? = null) {