From 466a02fe248fd1f5b3d56863223d6d6ee6788fed Mon Sep 17 00:00:00 2001 From: Forrest Guice Date: Thu, 7 Dec 2023 08:49:42 -0700 Subject: [PATCH] nullcheck fix app crash (#751) --- .../java/com/forrestguice/suntimeswidget/SuntimesActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/forrestguice/suntimeswidget/SuntimesActivity.java b/app/src/main/java/com/forrestguice/suntimeswidget/SuntimesActivity.java index fd0565481..ebaaec019 100644 --- a/app/src/main/java/com/forrestguice/suntimeswidget/SuntimesActivity.java +++ b/app/src/main/java/com/forrestguice/suntimeswidget/SuntimesActivity.java @@ -513,7 +513,7 @@ public void onResume() } TimeDateDialog seekDateDialog = (TimeDateDialog) fragments.findFragmentByTag(DIALOGTAG_DATE_SEEK); - if (dateDialog != null) + if (seekDateDialog != null) { seekDateDialog.setTimezone(dataset.timezone()); seekDateDialog.setOnAcceptedListener(onSeekDate(seekDateDialog));