diff --git a/app/src/main/java/foundation/e/blisslauncher/features/weather/WeatherUpdater.java b/app/src/main/java/foundation/e/blisslauncher/features/weather/WeatherUpdater.java index d689506dc72581a94ec455ddf87c5009acd40b66..9a10a3a2d80197c71c11476cd88814693000a82e 100644 --- a/app/src/main/java/foundation/e/blisslauncher/features/weather/WeatherUpdater.java +++ b/app/src/main/java/foundation/e/blisslauncher/features/weather/WeatherUpdater.java @@ -147,6 +147,11 @@ public class WeatherUpdater { } protected void requestCustomWeatherUpdate(@Nullable WeatherLocation location) { + if (location == null) { + Log.w(TAG, "Custom location is null. Cannot request weather"); + return; + } + Log.i(TAG, "Requesting weather info for location: " + location); Context context = mWeakContext.get(); LineageWeatherManager weatherManager = LineageWeatherManager.getInstance(context);