don't call update if == null
This commit is contained in:
parent
89fef312c5
commit
66e2ce5180
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ public class InsightAlertActivity extends AppCompatActivity {
|
||||||
alertService.setAlertActivity(InsightAlertActivity.this);
|
alertService.setAlertActivity(InsightAlertActivity.this);
|
||||||
alert = alertService.getAlert();
|
alert = alertService.getAlert();
|
||||||
if (alert == null) finish();
|
if (alert == null) finish();
|
||||||
update(alert);
|
else update(alert);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue