MV Cannot read property 'iconIndex' of null issue

So I wanted to use the Battle Status Window from the Victor Engine Scripts, but it seems like every time an actor uses an action that affects either themselves or multiple actors it comes up with the error message "Cannot read property 'iconIndex' of null"
It seems like other people have been experiencing this issue too and I'm wondering if there's any reason or fix for this?
(Gif below is the issue recreated in a demo project)
The key to that error is the "of NULL" - which basically means that the engine was given a reference that does not exist.

possible causes:
1) trying to co0ntinue an incompatible savefile - start a new game
2) trying to use a skill or item that had been deleted from the database
3) incompatible plugins or plugins in the wrong order - please provide screenshots of your plugin manager
The key to that error is the "of NULL" - which basically means that the engine was given a reference that does not exist.

possible causes:
1) trying to co0ntinue an incompatible savefile - start a new game
2) trying to use a skill or item that had been deleted from the database
3) incompatible plugins or plugins in the wrong order - please provide screenshots of your plugin manager
I started a new project with all the default things, and the issue still occurred even then. So I don't think it's due to it being any of those options since:
1) Starting a new game has the same issue
2) Default skills were used and it still references the 'iconIndex' of null issue (no changes were made in the skills database)
3)I've provided an attachment of the plugin manager (of the demo) which leads me to believe that the plugin itself is causing the issue somehow?
if the plugin is not configured correctly, then that can happen.
a lot of plugins need to be configured before they function.

how have you configured them?
Please post the actual error trace - press F8, go to the Console tab.

I have identified and fixed game-breaking bugs in a number of Victor Engine plugins out of the box, so it's quite possible this is a legitimate flaw in the code, but we need to see where it's coming from.
just tested this and its working fine using the provided notetags.. in the example(help file). What are the things you used/do in the actors notetag and did you use a plugin command rather parameters or scriptcalls? yeah you should do what @ATT_Turan said
Please post the actual error trace - press F8, go to the Console tab.

I have identified and fixed game-breaking bugs in a number of Victor Engine plugins out of the box, so it's quite possible this is a legitimate flaw in the code, but we need to see where it's coming from.
Here's what it says in the Console
I also just installed the plugins in a new test project and had zero errors with using a variety of skills.

I suggest removing the plugins from your plugin manager and saving your project. Re-download the files, just in case something weird happened in the copying. Re-install, save, start a new game to test.
I also just installed the plugins in a new test project and had zero errors with using a variety of skills.

I suggest removing the plugins from your plugin manager and saving your project. Re-download the files, just in case something weird happened in the copying. Re-install, save, start a new game to test.
I re-installed the plugins and the issue's still there.
The error only pops up when using a skill that affects the person casting it (e.g. self-healing) or if it affects all enemies/allies. It doesn't seem to have any issues with other skill types.
One of the skills I tested with was an actor healing himself. I can try a scope of all enemies, but I don't see why that would make a difference - nothing in the trace you posted has to do with the skill's scope.
I re-installed the plugins and the issue's still there.
The error only pops up when using a skill that affects the person casting it (e.g. self-healing) or if it affects all enemies/allies. It doesn't seem to have any issues with other skill types.
have you used the parameters or edited them already? a screenshot of the plugin parameters would be better, I even copied a action sequenced skill/spell from old project to test it with a new and nothing seems to be wrong.
One of the skills I tested with was an actor healing himself. I can try a scope of all enemies, but I don't see why that would make a difference - nothing in the trace you posted has to do with the skill's scope.
I should've specified that it occurs when the actor heals themselves through "The User" scope, as shown in the example now, apologies.
have you used the parameters or edited them already? a screenshot of the plugin parameters would be better, I even copied a action sequenced skill/spell from old project to test it with a new and nothing seems to be wrong.

I did have things like the window lines & columns edited earlier, along with the Show Action Icon set to True, however, even when I've re-downloaded the plugin to its default state with nothing changed, the issue is still there.
i tried it it does not have any errors, it must be the plugin parameters if you edited them already??

EDIT:
@Finnshuntaro - this happened after you edited those?

try to off delete the plugin in the list, save run the game then try to turn it on after then try again. Are you testing it on test play try it there not in the troops? delete the save files if you have with the error not sure if that will help?
i tried it it does not have any errors, it must be the plugin parameters if you edited them already??

EDIT:
@Finnshuntaro - this happened after you edited those?

try to off delete the plugin in the list, save run the game then try to turn it on after then try again. Are you testing it on test play try it there not in the troops? delete the save files if you have with the error not sure if that will help?
Here's what my plugin parameters look like, I'm fairly certain these are all the default values.
And I've tried to delete the plugin, save, run, then re-add it again. As soon as the plugin is active, the issues happen. I've also been using the playtest mode the whole time, not the battle test on the troops menu.
Okay, when I set the scope of my skill to User, I get the error. I'll look into it.

Edit: Got it. Swap the order of lines 1376-1377 thusly:
Code:
        this.setActionIcon();        
        VictorEngine.BattleStatusWindow.onSelectAction.call(this);
this one? strange its working for me the way it is but ill save this in case. thank you.
its working for me the way it is
I don't see how it could, unless you have a different, newer version of the plugin than is on the site and it modifies something else in MV's code.

When a skill has a scope that doesn't require you to confirm a target (such as User), the onSelectAction() method instructs the battle manager to go directly to the next actor's turn.

Therefore, in those circumstances, by the time this plugin is calling setActionIcon(), there is no currently inputting action because the next actor's turn has started without a chance to select anything. And that's why trying to get the icon for the skill fails with the skill being undefined.

So we must simply obtain the icon first, and then hand the action off to onSelectAction() which will determine whether it needs a target or goes to the next actor.
I don't see how it could, unless you have a different, newer version of the plugin than is on the site and it modifies something else in MV's code.

When a skill has a scope that doesn't require you to confirm a target (such as User), the onSelectAction() method instructs the battle manager to go directly to the next actor's turn.

Therefore, in those circumstances, by the time this plugin is calling setActionIcon(), there is no currently inputting action because the next actor's turn has started without a chance to select anything. And that's why trying to get the icon for the skill fails with the skill being undefined.

So we must simply obtain the icon first, and then hand the action off to onSelectAction() which will determine whether it needs a target or goes to the next actor.
yep the default heal spell is set to 1 or single ally, in the screenshot above its the heal spell i used set to user.
Also the first time i used this plugin kinda cool.. Thanks for the explanation, I learned a lot and i think this solves the problem now. gonna save this in my notes and look into it thanks thanks.
Okay, when I set the scope of my skill to User, I get the error. I'll look into it.

Edit: Got it. Swap the order of lines 1376-1377 thusly:
Code:
        this.setActionIcon();       
        VictorEngine.BattleStatusWindow.onSelectAction.call(this);
Thanks so much! I don't seem to be experiencing the issue anymore.

Original thread: https://forums.rpgmakerweb.com/threads/cannot-read-property-iconindex-of-null-issue.161092/