LibProcessable

14.8k Downloads

Attempt to compare nil with number when using :IsDisenchantable on white/grey items.

Blazeflack opened this issue ยท 1 comments

commented

If you feed a grey/white item to :IsDisenchantable (which would happen if you simply parse through all items in your inventory), then you receive an error similar to the following:

Message: ...sonDisenchant\libs\LibProcessable\LibProcessable.lua line 337:
   attempt to compare nil with number
Debug:
   [C]: ?
   ...sonDisenchant\libs\LibProcessable\LibProcessable.lua:337: IsDisenchantable()
   ...ace\AddOns\GarrisonDisenchant\GarrisonDisenchant.lua:158:
      ...ace\AddOns\GarrisonDisenchant\GarrisonDisenchant.lua:151
   ...ace\AddOns\GarrisonDisenchant\GarrisonDisenchant.lua:457:
      ...ace\AddOns\GarrisonDisenchant\GarrisonDisenchant.lua:384
Locals:
commented

I've fixed this already, but have yet to publish it. Thanks for bringing this up.