[HELP] Object reference not set to an instance of an object

All i want do do is assign the i key to open an inventory, but i keep getting the error

NullReferenceException: Object reference not set to an instance of an object
Chapter2.GameManager_InventoryUI.CheckForInventroyUIToggleRequest () (at Assets/FPS/Scripts/GameManagerScripts/GameManager_InventoryUI.cs:40)

im using unity 5.3
and my script is c#

Looks like you haven’t assigned gameManagerMaster.

where and how would i assign it? im ready for throwing the computer out of the window haha, its been a long day, and im going to kick myself when i realise how simple its going to be

If I am not mistaken, this operates as a singleton, but still inheriting from MonoBehavior. Grab the GameManager script (no idea how it is actually called) and attach it on a gameobject in your scene (preferably something you use for singletons, like an empty gameobject called “Manager”). If the system automatically stores the instance on awake, then you should no longer receive null exception.

thank you, that did work, i am no longer getting the error message, but its not responding to the key press i need it too now

From that script, the inventory will toggle once you release a mouse button. Make sure you expect your result after this and also make sure that you are clicking the proper button (the one declared as toggleInventoryButton).
Also, add a Debug.Log in the method from your screenshot, so as to be absolutely positive that everything else is correct. If the debug.log shows up, but the inventory does not, then the problem lies somewhere else in the system.