Skip to content

Commit 8204a64

Browse files
author
LocalIdentity
committed
Fix nil title import crash
1 parent 4320038 commit 8204a64

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Classes/ImportTab.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@ function ImportTabClass:ImportSocketedItems(item, socketedItems, slotName)
11261126
itemSocketGroupList[groupID] = { label = "", enabled = true, gemList = { }, slot = slotName }
11271127
end
11281128
local socketGroup = itemSocketGroupList[groupID]
1129-
if not socketedItem.support and socketGroup.gemList[1] and socketGroup.gemList[1].support and not item.title:match("Dialla's Malefaction") then
1129+
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
11301130
-- If the first gemInstance is a support gemInstance, put the first active gemInstance before it
11311131
t_insert(socketGroup.gemList, 1, gemInstance)
11321132
else

src/Classes/ItemsTab.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3607,7 +3607,7 @@ function ItemsTabClass:AddItemTooltip(tooltip, item, slot, dbMode)
36073607
end
36083608

36093609
if flavourTable then
3610-
if item.title:match("Grand Spectrum") then
3610+
if (item.title and item.title:match("Grand Spectrum")) then
36113611
local selectedFlavourId = nil
36123612
for _, lineEntry in ipairs(tooltip.lines or {}) do
36133613
local lineText = lineEntry.text or ""

src/Modules/CalcTriggers.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ local function defaultTriggerHandler(env, config)
693693
end
694694

695695
if env.player.mainSkill.activeEffect.grantedEffect.name == "Doom Blast" and env.build.configTab.input["doomBlastSource"] == "vixen" then
696-
if not env.player.itemList["Gloves"] or not env.player.itemList["Gloves"].title:match("Vixen's Entrapment") then
696+
if not env.player.itemList["Gloves"] or not (env.player.itemList["Gloves"].title and env.player.itemList["Gloves"].title:match("Vixen's Entrapment")) then
697697
output.VixenModeNoVixenGlovesWarn = true
698698
end
699699

0 commit comments

Comments
 (0)