Check if habit is null on BaseWidgetProvider

This commit is contained in:
2016-03-14 14:54:43 -04:00
parent f7f4b5eeb0
commit 18abb2038f

View File

@@ -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);