don't call update if == null

This commit is contained in:
Milos Kozak 2019-06-19 09:24:16 +02:00
parent 89fef312c5
commit 66e2ce5180

View file

@ -40,7 +40,7 @@ public class InsightAlertActivity extends AppCompatActivity {
alertService.setAlertActivity(InsightAlertActivity.this);
alert = alertService.getAlert();
if (alert == null) finish();
update(alert);
else update(alert);
}
@Override