Check if habit is null on BaseWidgetProvider
This commit is contained in:
parent
f7f4b5eeb0
commit
18abb2038f
@ -106,6 +106,8 @@ public abstract class BaseWidgetProvider extends AppWidgetProvider
|
||||
if(habitId < 0) return;
|
||||
|
||||
Habit habit = Habit.get(habitId);
|
||||
if(habit == null) return;
|
||||
|
||||
View widgetView = buildCustomView(context, habit);
|
||||
measureCustomView(context, width, height, widgetView);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user