fix NPE
This commit is contained in:
parent
52c85501c6
commit
48c8863ccb
1 changed files with 2 additions and 0 deletions
|
@ -145,6 +145,8 @@ public class TreatmentsBolusFragment extends SubscriberFragment implements View.
|
|||
@Override
|
||||
public void onClick(View v) {
|
||||
final Treatment treatment = (Treatment) v.getTag();
|
||||
if (treatment == null)
|
||||
return;
|
||||
switch (v.getId()) {
|
||||
case R.id.treatments_remove:
|
||||
AlertDialog.Builder builder = new AlertDialog.Builder(context);
|
||||
|
|
Loading…
Reference in a new issue