* SummaryHelper: Fix NPE at startup (ticket #493)

This commit is contained in:
zzz
2011-07-13 14:19:34 +00:00
parent 48896568ce
commit 3380ecfa28

View File

@ -517,7 +517,10 @@ public class SummaryHelper extends HelperBase {
if (_context == null)
return "0 ms";
Rate lagRate = _context.statManager().getRate("jobQueue.jobLag").getRate(60*1000);
RateStat rs = _context.statManager().getRate("jobQueue.jobLag");
if (rs == null)
return "0 ms";
Rate lagRate = rs.getRate(60*1000);
return DataHelper.formatDuration2((long)lagRate.getAverageValue());
}