I am getting this exception can anyone Help.

I am getting this exception object reference not set to an instance of an object. While call this method “StartGameButton()” on a button click.
I have also included punturnmanager and photonview on the same Gameobject where i have attached this method’s script.
Can anyone help me.

public void StartGameButton()
{
this.StartTurn();
}

public void StartTurn()
{
if (PhotonNetwork.IsMasterClient)
{
this.turnManager.BeginTurn();
}
}

Most of the time, when a newbie programmer sees that error, it means they forgot to assign a value to a variable (possibly in the Unity inspector).

But based on the error message in your screenshot it looks like it’s being thrown from somewhere deep inside Photon, so in this case I would guess there’s a problem with the way you configured or initialized Photon. I’ve never used Photon, so I can’t offer advice there.