Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
howeyc committed Dec 9, 2016
1 parent b73b9cc commit 36449bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/lweb/handler_report.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ func reportHandler(w http.ResponseWriter, r *http.Request, params martini.Params

for dIdx := range lData.DataSets {
aval, afound := accVals[lData.DataSets[dIdx].AccountName]
if !afound {
if !afound || aval == nil {
aval = big.NewRat(0, 1)
}
lData.DataSets[dIdx].Values = append(lData.DataSets[dIdx].Values, aval)
Expand Down

0 comments on commit 36449bd

Please sign in to comment.