mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-19 04:14:12 +00:00
Added null check
This commit is contained in:
parent
945eed39b7
commit
0b9df59c5d
1 changed files with 2 additions and 0 deletions
|
|
@ -68,6 +68,8 @@ public class TaskAlarmManager {
|
|||
.queryList();
|
||||
|
||||
Task task = tasks.get(0);
|
||||
if (task == null) return;
|
||||
|
||||
if (!task.getType().equals(Task.TYPE_DAILY)) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue