tdBag2

tdBag2

67.5k Downloads

搜索物品时报错

swetlover opened this issue · 1 comments

commented

在背包中搜索物品时,只要删除了输入的内容,就报错:

1x tdBag2\Addon.lua:278: attempt to index local 'text' (a nil value)
tdBag2\Addon.lua:278: in function `SetSearch'
tdBag2\Core\SearchBox.lua:39: in function <tdBag2\Core\SearchBox.lua:36>

Locals:
self = <table> {
 SetDefaultModuleLibraries = <function> defined @Atlas\Libs\AceAddon-3.0\AceAddon-3.0.lua:367
 EnableModule = <function> defined @Atlas\Libs\AceAddon-3.0\AceAddon-3.0.lua:332
 modules = <table> {
 }
 ToggleFrame = <function> defined @tdBag2\Addon.lua:220
 IteratePluginButtons = <function> defined @tdBag2\Addon.lua:294
 FocusBag = <function> defined @tdBag2\Addon.lua:266
 SecureHook = <function> defined @Decursive\Libs\AceHook-3.0\AceHook-3.0.lua:336
 RawHookScript = <function> defined @Decursive\Libs\AceHook-3.0\AceHook-3.0.lua:395
 searchText = ""
 SetDefaultModulePrototype = <function> defined @Atlas\Libs\AceAddon-3.0\AceAddon-3.0.lua:409
 BankHider = <unnamed> {
 }
 defaultModuleState = true
 IsEnabled = <function> defined @Atlas\Libs\AceAddon-3.0\AceAddon-3.0.lua:451
 DisableModule = <function> defined @Atlas\Libs\AceAddon-3.0\AceAddon-3.0.lua:350
 RegisterMessage = <function> defined @Atlas\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:90
 UnregisterMessage = <function> defined @Atlas\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:153
 frames = <table> {
 }
 hooks = <table> {
 }
 db = <table> {
 }
 GetSearch = <function> defined @tdBag2\Addon.lua:287
 SetEnabledState = <function> defined @Atlas\Libs\AceAddon-3.0\AceAddon-3.0.lua:424
 Hook = <function> defined @Decursive\Libs\AceHook-3.0\AceHook-3.0.lua:274
 enabledState = true
 RegisterEvent = <function> defined @Atlas\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:90
 IterateModules = <function> defined @Atlas\Libs\AceAddon-3.0\AceAddon-3.0.lua:437
 RawHook = <function> defined @Decursive\Libs\AceHook-3.0\AceHook-3.0.lua:313
 GetClass = <function> defined @tdPack2\Libs\tdGUI\Libs\LibClass-2.0\Class-2.0.lua:332
 UpdateAllManaged = <function> defined @tdBag2\Addon.lua:243
 OnInitialize = <function> defined @tdBag2\Addon.lua:75
 UnregisterAllEvents = <function> defined @Atlas\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:174
 GetModule = <function> defined @Atlas\Libs\AceAddon-3.0\AceAddon-3.0.lua:210
 CreateFrame = <function> defined @tdBag2\Addon.lua:191
 OnClassCreated = <function> defined @tdBag2\Addon.lua:165
 SetOwner = <function> defined @tdBag2\Addon.lua:251
 UpdateAll = <function> defined @tdBag2\Addon.lua:239
 SetupBankHider = <function> defined @tdBag2\Addon.lua:175
 HideFrame = <function> defined @tdBag2\Addon.lua:213
 GetFrameProfile = <function> defined @tdBag2\Addon.lua:187
 name = "tdBag2"
 orderedModules = <table> {
 }
 Disable = <function> defined @Atlas\Libs\AceAddon-3.0\AceAddon-3.0.lua:314
 NewClass = <function> defined @tdPack2\Libs\tdGUI\Libs\LibClass-2.0\Class-2.0.lua:322
 options = <unnamed> {
 }
 bagClasses = <table> {
 }
 baseName = "tdBag2"
 Unhook = <function> defined @Decursive\Libs\AceHook-3.0\AceHook-3.0.lua:418
 RefreshPluginOptions = <function> defined @tdBag2\Core\Option.lua:281
 OpenFrameOption = <function> defined @tdBag2\Core\Option.lua:272
 SetupOptionFrame = <function> defined @tdBag2\Core\Option.lua:19
 pluginButtons = <table> {
 }
 Enable = <function> defined @Atlas\Libs\AceAddon-3.0\AceAddon-3.0.lua:294
 IsModule = <function> defined @Atlas\Libs\AceAddon-3.0\AceAddon-3.0.lua:468
 NewModule = <function> defined @Atlas\Libs\AceAddon-3.0\AceAddon-3.0.lua:235
 SendMessage = <function> defined @Atlas\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:59
 RegisterPluginButton = <function> defined @tdBag2\Addon.lua:310
 ```Lua
commented

Fixed