diff --git a/src/main/java/no/nibio/vips/logic/entity/PointOfInterestWeatherStation.java b/src/main/java/no/nibio/vips/logic/entity/PointOfInterestWeatherStation.java
index 019363ce0802268859f7f0ca17bfaa3ff4fb8542..81827edc02b333476cb41b310df9a67b6df6d0b1 100755
--- a/src/main/java/no/nibio/vips/logic/entity/PointOfInterestWeatherStation.java
+++ b/src/main/java/no/nibio/vips/logic/entity/PointOfInterestWeatherStation.java
@@ -134,8 +134,12 @@ public class PointOfInterestWeatherStation extends PointOfInterest implements Se
     @Transient
     public String getDataFetchUri()
     {
-        String dataRequestUri = String.format(this.getWeatherStationDataSourceId().getDatafetchUriExpression(),this.getWeatherStationRemoteId());
-        return dataRequestUri;
+        if(this.getWeatherStationDataSourceId() != null)
+        {
+            String dataRequestUri = String.format(this.getWeatherStationDataSourceId().getDatafetchUriExpression(),this.getWeatherStationRemoteId());
+            return dataRequestUri;
+        }
+        return "";
     }
 
     /**