Wednesday, 5 September 2007

Bug: Trend propagation from an empty initial log

Propagation from an initial month in the database with no weight entries to subsequent months would reference an undefined trend value for the month. I added code to set the trend carry-forward to zero in this case, as a trend of zero is our indication that no trend carry-forward exists. Since the undefined trend value would be treated as zero, this caused no problems but produced a warning message in the error log.

No comments: