Skip to content
Snippets Groups Projects
Commit ed1e8077 authored by adityab3's avatar adityab3
Browse files

[backend] bug fix to resolve nullpointer in constructor

parent dc90d189
No related branches found
No related tags found
1 merge request!28[backend] bug fix to resolve nullpointer in constructor
......@@ -91,9 +91,13 @@ public class DiagnosisStatisticsBean {
this.zipStats = zipStats;
this.regionStats = regionStats;
this.stateStats = stateStats;
this.allStats = allStats;
this.startDate = (Date) startDate.clone();
this.endDate = (Date) endDate.clone();
this.allStats = allStats;
if (startDate != null) {
this.startDate = (Date) startDate.clone();
}
if (endDate != null) {
this.endDate = (Date) endDate.clone();
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment