fixed exception

manavortex [11-22-18 - 08:07]
fixed exception
Filename
DasLog.lua
diff --git a/DasLog.lua b/DasLog.lua
index ddfab5c..9813c93 100644
--- a/DasLog.lua
+++ b/DasLog.lua
@@ -134,6 +134,7 @@ local function handleLog(forceNoAfterEight)

   if (not afterEight) and isEmpty(DAS.todaysLog) and lastDate ~= currentDate then
     local lastLog = DAS.globalSettings.completionLog[lastDate]
+    if not lastLog then return end
     DAS.globalSettings.completionLog[currentDate] = ZO_DeepTableCopy(lastLog, {})
     -- d(DAS.globalSettings.completionLog[currentDate])
     for charName, charLog in pairs(DAS.globalSettings.completionLog[currentDate]) do