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

More error catching

parent 0992988f
Branches
Tags
No related merge requests found
...@@ -429,7 +429,7 @@ public class SeptoriaHumidityModel extends I18nImpl implements Model { ...@@ -429,7 +429,7 @@ public class SeptoriaHumidityModel extends I18nImpl implements Model {
// Make sure we have weather data from dateGs31 // Make sure we have weather data from dateGs31
calculateGrowthStages(); calculateGrowthStages();
if(this.dataMatrix.getFirstDateWithParameterValue("RR").after(dateGs31)) if(this.dataMatrix.getFirstDateWithParameterValue("RR") == null || this.dataMatrix.getFirstDateWithParameterValue("RR").after(dateGs31))
{ {
throw new ConfigValidationException("ERROR: Missing weather data. First date with precipitation data is " + this.dataMatrix.getFirstDateWithParameterValue("RR") + ", date for GS 31 = " + this.dateGs31); throw new ConfigValidationException("ERROR: Missing weather data. First date with precipitation data is " + this.dataMatrix.getFirstDateWithParameterValue("RR") + ", date for GS 31 = " + this.dateGs31);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment