datacollection line 465 crash solved
AssemblerManiac [02-28-18 - 17:17]
datacollection line 465 crash solved
diff --git a/IIfA/IIfA.lua b/IIfA/IIfA.lua
index de1be9d..1ae336d 100644
--- a/IIfA/IIfA.lua
+++ b/IIfA/IIfA.lua
@@ -21,7 +21,7 @@ if IIfA == nil then IIfA = {} end
--local IIfA = IIfA
IIfA.name = "Inventory Insight"
-IIfA.version = "3.11"
+IIfA.version = "3.11a"
IIfA.author = "AssemblerManiac & manavortex"
IIfA.defaultAlertSound = nil
IIfA.colorHandler = nil
diff --git a/IIfA/IIfA.txt b/IIfA/IIfA.txt
index 6e03bc9..a68bfad 100644
--- a/IIfA/IIfA.txt
+++ b/IIfA/IIfA.txt
@@ -1,6 +1,6 @@
## Title: Inventory Insight
## Author: manavortex, AssemblerManiac
-## Version: 3.11
+## Version: 3.11a
## APIVersion: 100022
## SavedVariables: IIfA_Settings IIfA_Data
## OptionalDependsOn: libFilters pChat
diff --git a/IIfA/IIfADataCollection.lua b/IIfA/IIfADataCollection.lua
index b737b23..b3a8d2b 100644
--- a/IIfA/IIfADataCollection.lua
+++ b/IIfA/IIfADataCollection.lua
@@ -3,8 +3,8 @@ local _
local task = IIfA.task or LibStub("LibAsync"):Create("IIfA_DataCollection")
IIfA.task = task
-local function p(...)
- if nil == IIfA or nil == IIfA.DebugOut then return end
+local function p(...)
+ if nil == IIfA or nil == IIfA.DebugOut then return end
IIfA:DebugOut(...)
end
@@ -462,7 +462,9 @@ function IIfA:EvalBagItem(bagId, slotId, fromXfer, qty, itemLink, itemName, loca
if(DBitem) then
if itemCount == 0 then
- DBitem.locations[location].bagSlot[slotId] = nil
+ if DBitem.locations[location] and DBitem.locations[location].bagSlot then
+ DBitem.locations[location].bagSlot[slotId] = nil
+ end
if bagId == BAG_GUILDBANK then
IIfA.BagSlotInfo[location][slotId] = nil
else