null reference exception on raycast2D with unity 5

RaycastHit2D HitPoint = Physics2D.Raycast (transform.position, PlayerGet.transform.position, 4f);
if (HitPoint.collider.tag == “Player”)

the second line

You miss the if and the hit