# HG changeset patch # User James D. Callahan III # Date 1340213342 18000 # Node ID 786292c0bcc8bcb7d73d4de7585d76639727b5e9 # Parent 5d5a490724ecc00c01e08a9d912d103b29b21def Protection against nil in a couple of places. diff -r 5d5a490724ec -r 786292c0bcc8 Main.lua --- a/Main.lua Fri Jun 15 11:57:54 2012 -0500 +++ b/Main.lua Wed Jun 20 12:29:02 2012 -0500 @@ -628,7 +628,11 @@ end UpdateFactionData() + if not faction_name or not faction_standings[faction_name] then + return + end local npc = NPCEntry(action_data.identifier) + if not npc then return end @@ -1061,6 +1065,9 @@ function WDP:QUEST_DETAIL() local quest = UpdateQuestJuncture("begin") + if not quest then + return + end quest.classes = quest.classes or {} quest.classes[PLAYER_CLASS] = true