img.color = new Color32 not set to an instance of an object

Hello !
I do not understand what unity means when he say that… I want to change the color of an image, it does but send me an error :confused:

using TMPro;
using UnityEngine;
using UnityEngine.UI;

public class Shop : MonoBehaviour
{
    int skin;

    //Images
    public Image imgVanilla;
    public Image imgBlue;

void Start()
    {
        //Initialisation de la monnaie
        milk = PlayerPrefs.GetInt("milk", 0);

        //Initialisation de l'affichage la monnaie
        currentMilkText.text = milk.ToString();

        //Initialisation du skin actuel
        skin = PlayerPrefs.GetInt("Skin", 0);

        //Initialisation de la couleur des cases
        if (skin == 0)
        {
            imgVanilla.color = new Color32(220, 185, 145, 150); //ERROR HERE
        }
        else if (skin == 1)
        {
            imgBlue.color = new Color32(220, 185, 145, 150);
        }
    }

Thank you !

You forgot to assign the proper image in the inspector in the Img Vanilla slot.