Skip to content

Commit 1b829f6

Browse files
committed
Fix an error when external sites (*cough* wowhead) provide invalid loadout build strings (fixes #29)
1 parent fcd7a5a commit 1b829f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/ImportExportV2.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function ImportExport:BuildSerializedSelectedNodesFromImportString(importText, e
9494
if indexInfo.isNodePurchased then
9595
local nodeInfo = LibTT:GetNodeInfo(nodeID);
9696
local entryID = indexInfo.isChoiceNode and nodeInfo.entryIDs[indexInfo.choiceNodeSelection] or nodeInfo.entryIDs[1];
97-
local entryInfo = LibTT:GetEntryInfo(entryID);
97+
local entryInfo = entryID and LibTT:GetEntryInfo(entryID);
9898
if entryInfo and entryInfo.definitionID then
9999
local definitionInfo = C_Traits.GetDefinitionInfo(entryInfo.definitionID);
100100
if definitionInfo and definitionInfo.spellID then

0 commit comments

Comments
 (0)