KayelGee / token-attacher

MIT License
11 stars 18 forks source link

Small safety filter #109

Closed Saibot393 closed 2 months ago

Saibot393 commented 5 months ago

I had a bug report for one of my module which included the attached error message. I am not entirly certain what caused the invalid data to show up but this should prevent the error from coming up again. image

KayelGee commented 2 months ago

Your solution doesn't help as far as I can tell. layerGetElement returns a canvas placable if it finds one, if not it returns null. I'll filter for null which should solve it.

Thanks for your input.