New release

Leandro Silva [11-05-18 - 22:08]
New release
Filename
LeoTrainer.txt
LeoTrainerConst.lua
LeoTrainerUI.lua
diff --git a/LeoTrainer.txt b/LeoTrainer.txt
index bc7a280..7c643f6 100644
--- a/LeoTrainer.txt
+++ b/LeoTrainer.txt
@@ -1,7 +1,7 @@
 ## Title: Leo's Trainer
 ## APIVersion: 100024 100025
-## Version: 1.2.0
-## AddOnVersion: 120
+## Version: 1.2.1
+## AddOnVersion: 121
 ## Author: |c39B027@LeandroSilva|r
 ## SavedVariables: LeoTrainerSavedVariables
 ## DependsOn: LeoAltholic
diff --git a/LeoTrainerConst.lua b/LeoTrainerConst.lua
index 34ef02b..bbabdc1 100644
--- a/LeoTrainerConst.lua
+++ b/LeoTrainerConst.lua
@@ -3,7 +3,7 @@ LeoTrainer = {}
 LeoTrainerUI = {}
 LeoTrainer.name = "LeoTrainer"
 LeoTrainer.displayName = "Leo's Trainer"
-LeoTrainer.version = "1.2.0"
+LeoTrainer.version = "1.2.1"
 LeoTrainer.chatPrefix = "|c39B027" .. LeoTrainer.name .. "|r: "
 LeoTrainer.setting = nil
 LeoTrainer.hidden = true
diff --git a/LeoTrainerUI.lua b/LeoTrainerUI.lua
index 6752af6..871f53d 100644
--- a/LeoTrainerUI.lua
+++ b/LeoTrainerUI.lua
@@ -115,7 +115,7 @@ function LeoTrainerQueueList:SetupEntry(control, data)
     control.trainer = GetControl(control, "Trainer")
     control.trainer:SetText(data.trainer)
     control.trainer.knownList = data.knownList
-    if #data.knownList > 1 then
+    if data.knownList ~= nil and #data.knownList > 1 then
         control.trainer:SetHandler('OnMouseEnter', function(self)
             InitializeTooltip(InformationTooltip, self, LEFT, 5, 0)
             addLineTitle(InformationTooltip, "Trainers", ZO_TOOLTIP_DEFAULT_COLOR)