Skip to content

Commit

Permalink
Check for nil pointer of stats data (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
shifucun authored Aug 13, 2020
1 parent 2aff8ad commit 8f030fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ func triplesToStatsVar(

func filterAndRank(
in *ObsTimeSeries, mmethod, op, unit string) *ObsTimeSeries {
if in == nil {
return nil
}
out := &ObsTimeSeries{
PlaceDcid: in.PlaceDcid,
PlaceName: in.PlaceName,
Expand Down

0 comments on commit 8f030fc

Please sign in to comment.