diff --git a/app/src/main/java/foundation/e/drive/widgets/EDriveWidget.java b/app/src/main/java/foundation/e/drive/widgets/EDriveWidget.java index d5891220c1399dfc600269a56ed56549abd60525..0e9558b449939dc89eaa508a4fb74e22b084c33a 100644 --- a/app/src/main/java/foundation/e/drive/widgets/EDriveWidget.java +++ b/app/src/main/java/foundation/e/drive/widgets/EDriveWidget.java @@ -128,7 +128,10 @@ public class EDriveWidget extends AppWidgetProvider { } else { onAccountAvailable(context, accountManager); } - appWidgetManager.updateAppWidget(appWidgetId, views); + + if (views != null) { + appWidgetManager.updateAppWidget(appWidgetId, views); + } } private boolean isAccountPresentInApp(@NonNull Context context) {