Jaliborc / Bagnon

Single window displays for you items
194 stars 111 forks source link

C_Bank.FetchPurchasedBankTabData error #1924

Open Hendo72 opened 4 weeks ago

Hendo72 commented 4 weeks ago

Which software were you running?

Have you read the changelog? read

Please describe the bug. Error message on reload/enter.

Please describe how to reproduce it. All I did was reload the UI. happens every time.

I believe I auto-installed the update while I was playing because I didn't get this error until right now and I've been playing for a couple hours now.

Any Screenshots? image This looks off...

Error Logs are Important! 1x ...faceBagBrother/frames/containers/bankTab.lua:7: attempt to index global 'C_Bank' (a nil value) [string "@BagBrother/frames/containers/bankTab.lua"]:7: in main chunk

Locals: (temporary) = nil (temporary) = nil (temporary) = nil (temporary) = nil (temporary) = nil (temporary) = nil (temporary) = nil (temporary) = nil (temporary) = nil (temporary) = "attempt to index global 'C_Bank' (a nil value)"

goldenpipes commented 4 weeks ago

i have the same problem on Classic SOD 1.15.3

Highbeam commented 4 weeks ago

Same error,

I changed the line to get around it for now, but I couldn't tell you the real fix :P

if not C_Bank or not C_Bank.FetchPurchasedBankTabData then
    return
end

Full error was: Message: ...face/AddOns/BagBrother/frames/containers/bankTab.lua:7: attempt to index global 'C_Bank' (a nil value) Time: Sun Aug 18 16:07:29 2024 Count: 1 Stack: ...face/AddOns/BagBrother/frames/containers/bankTab.lua:7: attempt to index global 'C_Bank' (a nil value) [string "@Interface/AddOns/BagBrother/frames/containers/bankTab.lua"]:7: in main chunk

Locals: (temporary) = nil (temporary) = nil (temporary) = nil (temporary) = nil (temporary) = nil (temporary) = nil (temporary) = nil (temporary) = nil (temporary) = nil (temporary) = "attempt to index global 'C_Bank' (a nil value)"

Hendo72 commented 4 weeks ago

Thanks for the suggestion. I decided to keep it simple and went with: if not C_Bank then return end