Object reference not set to an instance Photon View,Object Reference not set to an instance of an object. Photon Unity

Please help Object reference not set to an instance.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Photon.Pun;
using Photon.Realtime;

public class DoorOpen : MonoBehaviour
{

[SerializeField] public Transform PlayerCamera;
[SerializeField] public float MaxDistance = 5;
[SerializeField] public PhotonView PV;
[SerializeField] public bool opened = false;
[SerializeField] public Animator anim;
[SerializeField] public AudioSource audio1;

[SerializeField] public float openDelay = 0;

void Start() {

}  

void Update()
{
if (Input.GetKeyDown(KeyCode.F))
{
PV.RPC(“Pressed”,RpcTarget.All,null);

}

}

[PunRPC]
void Pressed()
{

RaycastHit doorhit;

if (Physics.Raycast(PlayerCamera.transform.position, PlayerCamera.transform.forward, out doorhit, MaxDistance))
{
    if (doorhit.transform.tag == "Door")
    {

        anim = doorhit.transform.GetComponent<Animator>();
        audio1 = doorhit.transform.GetComponent<AudioSource>();
        opened = !opened;
        anim.SetBool("Opened", !opened);
        audio1.PlayDelayed(openDelay);
  
    }

}

}

},using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Photon.Pun;
using Photon.Realtime;

public class DoorOpen : MonoBehaviour
{

public Transform PlayerCamera;
public float MaxDistance = 5;
PhotonView PV;
public bool opened = false;
public Animator anim;
public AudioSource audio1;

public float openDelay = 0;

void Start() {

}  

void Update()
{
if (Input.GetKeyDown(KeyCode.F))
{
PV.RPC(“Pressed”,RpcTarget.All,null);

}

}

[PunRPC]
void Pressed()
{

RaycastHit doorhit;

if (Physics.Raycast(PlayerCamera.transform.position, PlayerCamera.transform.forward, out doorhit, MaxDistance))
{
    if (doorhit.transform.tag == "Door")
    {

        anim = doorhit.transform.GetComponent<Animator>();
        audio1 = doorhit.transform.GetComponent<AudioSource>();
        opened = !opened;
        anim.SetBool("Opened", !opened);
        audio1.PlayDelayed(openDelay);
  
    }

}

}

}

help please. object reference not set to instance

Hello! This is a standard answer.

Before coming Unity answers, you must always google what your error means. And learn that in every error message, it says the line of code where is happening.

Null Reference errors occurs when there is some variable with value null when code tries to read it. You need to learn to find your problem by your own. First, check your error code, it says the line where the problem is. Second, You need to debug the code while running, and check the states of the variables of the line at the moment the error occurs,

I’m sure you will detect what variable value is NULL. Then investigate why.

Look for some tutorials on how to debug code while running on your scripting software if don’t know what I’m talking about.

Bye & good Luck!