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

Bugfix: Allowing a GRID point to not have a weather data source

parent f2b3db16
Branches
Tags
1 merge request!17Develop
...@@ -134,8 +134,12 @@ public class PointOfInterestWeatherStation extends PointOfInterest implements Se ...@@ -134,8 +134,12 @@ public class PointOfInterestWeatherStation extends PointOfInterest implements Se
@Transient @Transient
public String getDataFetchUri() public String getDataFetchUri()
{ {
String dataRequestUri = String.format(this.getWeatherStationDataSourceId().getDatafetchUriExpression(),this.getWeatherStationRemoteId()); if(this.getWeatherStationDataSourceId() != null)
return dataRequestUri; {
String dataRequestUri = String.format(this.getWeatherStationDataSourceId().getDatafetchUriExpression(),this.getWeatherStationRemoteId());
return dataRequestUri;
}
return "";
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment