don't call update if == null
This commit is contained in:
parent
89fef312c5
commit
66e2ce5180
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue