Fixing error during parse of tracked quests

Leandro Silva [09-30-18 - 01:24]
Fixing error during parse of tracked quests
Filename
LeoAltholic.lua
LeoAltholic.txt
LeoAltholicUI.lua
diff --git a/LeoAltholic.lua b/LeoAltholic.lua
index f0a101b..210dd50 100644
--- a/LeoAltholic.lua
+++ b/LeoAltholic.lua
@@ -2,7 +2,7 @@
 LeoAltholic = {}
 LeoAltholic.name = "LeoAltholic"
 LeoAltholic.displayName = "Leo's Altholic"
-LeoAltholic.version = "1.1.1"
+LeoAltholic.version = "1.1.2"
 LeoAltholic.chatPrefix = "|c39B027" .. LeoAltholic.name .. "|r: "
 LeoAltholic.timerQueue = {}

diff --git a/LeoAltholic.txt b/LeoAltholic.txt
index f4aa1c9..81eec83 100644
--- a/LeoAltholic.txt
+++ b/LeoAltholic.txt
@@ -1,6 +1,6 @@
 ## Title: Leo's Altholic
 ## APIVersion: 100024 100025
-## Version: 1.1.1
+## Version: 1.1.2
 ## Author: |c39B027@LeandroSilva|r
 ## SavedVariables: LeoAltholicSavedVariables
 ## DependsOn: LibStub LibFeedback
diff --git a/LeoAltholicUI.lua b/LeoAltholicUI.lua
index ddaf4ef..cfc6e88 100644
--- a/LeoAltholicUI.lua
+++ b/LeoAltholicUI.lua
@@ -417,7 +417,7 @@ function LeoAltholic.DisplayCharacterFrames()
             control:SetText(char.champion[dAttribute].disciplines[i].spent)
         end

-        if char.quests.tracked ~= nil then
+        if char.quests ~= nil and char.quests.tracked ~= nil then
             row = WINDOW_MANAGER:GetControlByName('LeoAltholicTrackedRow'..x)
             for i = 1, 10 do
                 local label = row:GetNamedChild("Quest" .. i .. "Label")