Issue Details (XML | Word | Printable)

Key: ENX-120
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: ccox
Reporter: Nikk (Nechckn)
Votes: 1
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Enchantrix

ENX throwing error EnxTooltip.lua line 694: attempt to index local 'link' (a nil value)

Created: 21/Aug/09 03:56 AM   Updated: 16/Dec/09 10:15 PM
Component/s: Other
Affects Version/s: 5.6.0, 5.7.0
Fix Version/s: 5.6.0, 5.7.0


 Description  « Hide
Error occured in: Global
Count: 1
Message: ..\AddOns\Enchantrix\EnxTooltip.lua line 694:
attempt to index local 'link' (a nil value)
Debug:
(tail call): ?
[C]: ?
Enchantrix\EnxTooltip.lua:694: callback()
...AddOns\Auc-Advanced\Libs\LibExtraTip\LibExtraTip.lua:95:
...AddOns\Auc-Advanced\Libs\LibExtraTip\LibExtraTip.lua:80
...AddOns\Auc-Advanced\Libs\LibExtraTip\LibExtraTip.lua:167: h()
...AddOns\Auc-Advanced\Libs\LibExtraTip\LibExtraTip.lua:322:
...AddOns\Auc-Advanced\Libs\LibExtraTip\LibExtraTip.lua:318
[C]: SetAction()
..\FrameXML\ActionButton.lua:430: ActionButton_SetTooltip()
[string "*:OnEnter"]:1:
[string "*:OnEnter"]:1

 All   Comments   Change History   Transitions   FishEye   Crucible      Sort Order: Ascending order - Click to sort in descending order
Matthew Benner (MattBnr) added a comment - 21/Aug/09 09:46 AM
I can confirm this. I have gotten this error although im not sure exactly what i did to get it to pop up.

ccox added a comment - 21/Aug/09 01:57 PM
Something else is sending a nil link into the tooltip handler. Encahntrix is just the one that catches it.
But I can change the code to ignore nil links, then we'll just fail to show tooltips sometimes.

Nikk (Nechckn) added a comment - 21/Aug/09 08:09 PM
Perhaps something like
function hookSpellTooltip(tipFrame, link, name, rank)
if (link == nil) then return end ?

Whatever works is fine, though... realize it's not really an ENX thing but something along those lines should suffice for now.


ccox added a comment - 22/Aug/09 06:10 PM
fixed with revsion 4407

I just bail if we get a nil link.
When we get a reproduceable error case, we can debug the cause back into LTT.


Nikk (Nechckn) added a comment - 16/Dec/09 10:15 PM
Verified in dev/Trunk.