League-of-Foundry-Developers / foundry-token-hotbar

Using this module, you can assign one of the hotbar pages to remember macros per token.
MIT License
9 stars 7 forks source link

Got an error for "tokens" property set to null #32

Closed yoshikidneo closed 3 years ago

yoshikidneo commented 3 years ago

This happens on load, doesn't seem to impact the use of the module but want to make sure you're aware.

foundry.js:2499 TypeError: Cannot read property 'tokens' of null at TokenHotbar.js:1 at Function._call (foundry.js:2496) at Function.call (foundry.js:2481) at CustomHotbar._render (foundry.js:4547)

janssen-io commented 3 years ago

Hey Yoshi, thanks for reporting this!

I can't seem to reproduce this myself. Could you answer the following questions?

yoshikidneo commented 3 years ago

Hey Yoshi, thanks for reporting this!

I can't seem to reproduce this myself. Could you answer the following questions?

  • Which version of Foundry is this with?
  • Any other modules installed?
  • Does this error still occur when you disable the other modules?

I'm using Foundry v0.7.7 I do have a good amount of modules setup, and after making a new world to do some testing, I have found that only having the hotbars enabled there isn't an issue.

My guess is that there is something else happening with another module, and for whatever reason it pointed to this one as the error as well as custom hotbar.