mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Check if habit is null on BaseWidgetProvider
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user