Added check to see if any period was found
This commit is contained in:
@@ -12,8 +12,15 @@ public class LangsteZomerPeriode extends Grootheid{
|
||||
public void updatePeriod(ArrayList<Measurement> measurement2){
|
||||
createList(measurement2);
|
||||
int[] index = StatisticsCalculator.langsteZomersePeriode(list);
|
||||
if(index[0]==index[1] && index[0]==0)
|
||||
{
|
||||
setCustom("-");
|
||||
}
|
||||
else
|
||||
{
|
||||
setPeriod(Calculator.timeStampToPeriode( measurement2.get(index[0]).getDateStamp(), measurement2.get(index[1]).getDateStamp()));
|
||||
}
|
||||
}
|
||||
|
||||
public void displayGraph(){}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user