Fix nil title import crash

This commit is contained in:
LocalIdentity
2025-11-22 16:11:19 +11:00
parent 4320038152
commit 8204a64dc9
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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 ""

View File

@@ -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