Skip to content
Snippets Groups Projects
Commit 60e1654d authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Fix NullPointerException when running for a specific weather station

parent 71af0db5
No related branches found
No related tags found
1 merge request!191Add map module and Open-Meteo support
......@@ -111,7 +111,11 @@ public class RunAllForecastConfigurationsTask extends VipsLogicTask{
else if(
weatherStationPointOfInterestId == null
|| weatherStationPointOfInterestId <= 0
|| (forecastConfiguration.getWeatherStationPointOfInterestId() != null && forecastConfiguration.getWeatherStationPointOfInterestId().getPointOfInterestId().equals(weatherStationPointOfInterestId))
|| (
forecastConfiguration.getWeatherStationPointOfInterestId() != null
&& forecastConfiguration.getWeatherStationPointOfInterestId().getPointOfInterestId() != null
&& forecastConfiguration.getWeatherStationPointOfInterestId().getPointOfInterestId().equals(weatherStationPointOfInterestId)
)
)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment