Cannot read property 'clamp' of null

Okay, I got a bug that I've never seen before, and after searching on google, discovered no one talked about it before.


I am using several Yanfly plugins, although I already tested with most relevant plugin (as in it has anything to do with items or equipment) and it kept appearing.


My issue comes with an equipment slot, when you equip something in it, first the values appear wrong. Then, when you try to change or use another equip slot, it crashes  with the message "Cannot read property 'clamp' of null".


Error Report:

Spoiler
TypeError: Cannot read property 'clamp' of null
    at Game_Actor.Game_BattlerBase.refresh (rpg_objects.js:2603)
    at Game_Actor.Game_BattlerBase.refresh (YEP_ExtraParamFormula.js:497)
    at Game_Actor.Game_BattlerBase.refresh (YEP_EnhancedTP.js:2815)
    at Game_Actor.Game_Battler.refresh (rpg_objects.js:2988)
    at Game_Actor.Game_Battler.refresh (YEP_BaseParamControl.js:913)
    at Game_Actor.Game_Battler.refresh (YEP_X_CounterControl.js:1453)
    at Game_Actor.refresh (rpg_objects.js:3742)
    at Game_Actor.refresh (YEP_EquipBattleSkills.js:565)
    at Game_Actor.refresh (YEP_ClassChangeCore.js:547)
    at Game_Actor.forceChangeEquip (rpg_objects.js:3626)rpg_managers.js:1618 SceneManager.catchExceptionrpg_managers.js:1579 SceneManager.update



Since I don't know how to make/put here a sample project, I'll be sending a mediafire link:


http://www.mediafire.com/download/130ykud9ldh4gl9/Guild_Hunter.rar


Does anyone have a clue about what the issue is?


The only still active and relevant plugins are:


 YEP_CoreEngine


 YEP_MainMenuManager


 YEP_BaseParamControl


 YEP_ItemCore


 YEP_EquipCore


 YEP_X_CounterControl
first, your list of active and relevant plugins is wrong - the error message itself lists all involved plugins, and there are several involved that are missing in your list. And they couldn't be listed if they weren't active.


second, this is a plugin support, npt general MV support


I've moved this thread to Plugin Support. Please be sure to post your threads in the correct forum next time. Thank you.


I also suggest giving links to all involved plugins, that will speed up search.


third: cannot read property of null means that some data is not initialised.


This can either be a missing configuration (incomplete tahs in database for the equipment), an incompatibility between two plugins (unlikely unless you missed an update as everything is from one scripter) or using an old (and incompatible) savefile instead of starting a new game.


The only possibility left for script incompatibility is if you placed Yanfly's plugins in the wrong order - please check his order on his website for this possibility.

Original thread: https://forums.rpgmakerweb.com/threads/cannot-read-property-clamp-of-null.67267/