NullReferenceExeption Script Error

I have a little problem with my script.
If anybody can help me, it whould be appreciating!
OK.

So I get this NullReferenceExeption error, how can I fix this?
using UnityEngine;
using UnityEngine.UI;
using System.Collections;

public class MenuSwitch : MonoBehaviour {

    public Canvas canvas;
    public Button button;


    void Start()
    {
        button = GetComponent<Button>();
        canvas.enabled = false;
    }


    public void Press()

    {
        button.enabled = true;
        canvas.enabled = true;

    }
}

I made this script for my Main Menu Panel switching

I am going to assume that you haven’t dragged and dropped the Canvas element into your public canvas variable. You can just drag and drop the canvas-object into your variable, or do the same thing that you did with you button:

     void Start()
     {
         button = GetComponent<Button>();
         canvas = GetComponent<Canvas>();
         canvas.enabled = false;
     }

@TareqProjects I put the script in, tested it but it STILL gives me me “NullReferinceExeption: Object reference not set to an instance of an object”

The problem is in this part of the script:

    public void Press()

    {
        Button.enabled = true;
        Canvas.enabled = true;

    }
}

Mainly the “Button.enabled = true;” Part.