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
1 changed files with 1 additions and 1 deletions

View File

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