15 - Error displaying tooltip for "current session only"
I have the analyst info being displayed on titan panel, for the current session only. When I hover over the analyst plug-in, I get the following error:
Error occured in: Global Count: 1 Message: ..\AddOns\Analyst\Analyst.lua line 320: 'for' initial value must be a number Debug: (tail call): ? [C]: ? Analyst\Analyst.lua:320: OnTooltipShow() Analyst\Analyst.lua:136: func() Titan\LDBToTitan.lua:137: TitanLDBSetTooltip() Titan\LDBToTitan.lua:194: Titan\LDBToTitan.lua:192
It seems that after Analyst:OnTooltipShow() calls GetPeriodStartFinish(), it doesn't handle the case where the return values are nil (which seems to be a valid return value for GetPeriodStartFinish() if looking at current session data).
Analyst:UpdateReport() seems to handle this correctly, however. Adding the same check for nil and else clause to OnTooltipShow() seemed to resolve the issue for me (as far as I can tell, anyway).
- 1 comment
- 1 comment
- #1
Bethink Sun, 08 Nov 2009 23:54:49Your analysis is right on point. Thanks. Fixed in 1.0.10.