Crash after every battle

Hello,

I am experiencing a crash after eaach battle that says it can't find null. Would anyone be able to help me diagnose what is going on?

Thank you!
You would have to show a screenshot of the error as it appears ingame or from within the console tab of devtools when you hit f12

you wouldnt get an error for not finding null. you would get one for not finding *something* of null. are you testing battles with old saves? when you make database changes and load old saves, the old data can conflict with the new data in different ways and produce errors.
As an example, if an actor is set to class #5, you started a new file and made a save, and then you reduced the maximum number of classes to 3, even if you reassigned the actor to class #2 within the editor afterwards, loading that old save will cause a crash at some point as the actor is still class #5 in the save and it no longer exists. you should always make new save files for you tests if you havent.
another issue if you fight an enemy that was removed, but not from it's troop.
or from battle test as it doesn't return to the map where it mostly ocure.

new game is mostly the way to test things out to avoid those kind of errors,
and it shows in the console log like Robro33 said, from there, we can pinpoint
the cause exactly.

if you use plugins, it can be one of the notetags like a typo or something.
Hanks guys. I'm testing from a new game. I'm guessing it's an issue with my lighting plugin from this console error.

Original thread: https://forums.rpgmakerweb.com/threads/crash-after-every-battle.174446/