Fix nil title import crash
This commit is contained in:
@@ -1126,7 +1126,7 @@ function ImportTabClass:ImportSocketedItems(item, socketedItems, slotName)
|
||||
itemSocketGroupList[groupID] = { label = "", enabled = true, gemList = { }, slot = slotName }
|
||||
end
|
||||
local socketGroup = itemSocketGroupList[groupID]
|
||||
if not socketedItem.support and socketGroup.gemList[1] and socketGroup.gemList[1].support and not item.title:match("Dialla's Malefaction") then
|
||||
if not socketedItem.support and socketGroup.gemList[1] and socketGroup.gemList[1].support and not (item.title and item.title:match("Dialla's Malefaction")) then
|
||||
-- If the first gemInstance is a support gemInstance, put the first active gemInstance before it
|
||||
t_insert(socketGroup.gemList, 1, gemInstance)
|
||||
else
|
||||
|
||||
@@ -3607,7 +3607,7 @@ function ItemsTabClass:AddItemTooltip(tooltip, item, slot, dbMode)
|
||||
end
|
||||
|
||||
if flavourTable then
|
||||
if item.title:match("Grand Spectrum") then
|
||||
if (item.title and item.title:match("Grand Spectrum")) then
|
||||
local selectedFlavourId = nil
|
||||
for _, lineEntry in ipairs(tooltip.lines or {}) do
|
||||
local lineText = lineEntry.text or ""
|
||||
|
||||
@@ -693,7 +693,7 @@ local function defaultTriggerHandler(env, config)
|
||||
end
|
||||
|
||||
if env.player.mainSkill.activeEffect.grantedEffect.name == "Doom Blast" and env.build.configTab.input["doomBlastSource"] == "vixen" then
|
||||
if not env.player.itemList["Gloves"] or not env.player.itemList["Gloves"].title:match("Vixen's Entrapment") then
|
||||
if not env.player.itemList["Gloves"] or not (env.player.itemList["Gloves"].title and env.player.itemList["Gloves"].title:match("Vixen's Entrapment")) then
|
||||
output.VixenModeNoVixenGlovesWarn = true
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user