prevent NPE
This commit is contained in:
parent
90f6908b22
commit
4c9052b29a
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ class TreatmentsBolusFragment : DaggerFragment() {
|
||||||
}
|
}
|
||||||
calculation.paintFlags = calculation.paintFlags or Paint.UNDERLINE_TEXT_FLAG
|
calculation.paintFlags = calculation.paintFlags or Paint.UNDERLINE_TEXT_FLAG
|
||||||
remove.setOnClickListener {
|
remove.setOnClickListener {
|
||||||
val treatment = it.tag as Treatment
|
val treatment = it.tag as Treatment? ?: return@setOnClickListener
|
||||||
activity?.let { activity ->
|
activity?.let { activity ->
|
||||||
val text = resourceHelper.gs(R.string.configbuilder_insulin) + ": " +
|
val text = resourceHelper.gs(R.string.configbuilder_insulin) + ": " +
|
||||||
resourceHelper.gs(R.string.formatinsulinunits, treatment.insulin) + "\n" +
|
resourceHelper.gs(R.string.formatinsulinunits, treatment.insulin) + "\n" +
|
||||||
|
|
Loading…
Reference in a new issue