# HG changeset patch # User James D. Callahan III # Date 1341365117 18000 # Node ID 63f7286e5d133fbcfa2137d1848259f418842cb3 # Parent 11fcae12db206623b658e0f55e3d3e2714ba500c Check for nil NPC in TRAINER_SHOW. diff -r 11fcae12db20 -r 63f7286e5d13 Main.lua --- a/Main.lua Tue Jul 03 19:44:41 2012 -0500 +++ b/Main.lua Tue Jul 03 20:25:17 2012 -0500 @@ -1133,6 +1133,10 @@ end local unit_type, unit_idnum = ParseGUID(_G.UnitGUID("target")) local npc = NPCEntry(unit_idnum) + + if not npc then + return + end npc.teaches = npc.teaches or {} -- Get the initial trainer filters