I love this forum, and I love learning Javascript and making Scripts for the API in my SWN campaign, but lately this error keeps coming up. I don't know from where, or why. I've tried the Inspector Script to find it, but I cannot seem to make it work either. It's always the same error too. HELP! I've shut off scripts one by one to narrow it down, but I think it might be roll20AM script itself. I've got quite a lot of sounds. Maybe 100? Only half are in playlists. I'm also using setInterval and setTimeout on 2 scripts (used to flip multi-sided tokens as a slldeshow for Session End Credits), but i'm careful to clear those out, and set them to null after exiting those 2 pages. The only reason I'm suspicious of those is the 1st 2 errors that come up) ERROR BELOW ____________________________________ Your scripts are currently disabled due to an error that was detected. Please make appropriate changes to your script's code and click the "Save Script" button. We will then attempt to start running the scripts again. More info... If this script was installed from the Mod Library, you might find help in the Community API Forum. For reference, the error message generated was: TypeError: Cannot read properties of null (reading 'indexOf')
TypeError: Cannot read properties of null (reading 'indexOf')
at d20.textchat.doChatInput (eval at <anonymous> (/home/node/d20-api-server/api.js:172:1), <anonymous>:332:18)
at sendChat (/home/node/d20-api-server/api.js:1920:16)
at outputConfig (apiscript.js:334:16)
at changeHandler (apiscript.js:751:21)
at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:168:1), <anonymous>:65:16)
at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:168:1), <anonymous>:70:8)
at TrackedObj.set (/home/node/d20-api-server/api.js:1107:14)
at updateLocalCache (/home/node/d20-api-server/api.js:1442:18)
at /home/node/d20-api-server/api.js:1656:7
at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:560