From d793cde9758b7326814402c978b792ece70673b7 Mon Sep 17 00:00:00 2001 From: TheScarastic Date: Wed, 6 Apr 2022 16:37:39 +0530 Subject: [PATCH] eDrive: Add null check for aliases --- app/src/main/java/foundation/e/drive/widgets/EDriveWidget.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 fc684345..68ad65ee 100644 --- a/app/src/main/java/foundation/e/drive/widgets/EDriveWidget.java +++ b/app/src/main/java/foundation/e/drive/widgets/EDriveWidget.java @@ -221,7 +221,7 @@ public class EDriveWidget extends AppWidgetProvider { views.setTextViewText(R.id.sync, context.getString(R.string.last_synced, sdf.format(calender.getTime()))); - if (aliases.isEmpty()) { + if (aliases == null || aliases.isEmpty()) { views.setViewVisibility(R.id.show_alias, View.GONE); views.setViewVisibility(R.id.alias1_container, View.GONE); views.setViewVisibility(R.id.hide_alias, View.GONE); -- GitLab