NullReferenceException. No idea why it does that. Help.

So, ive been trying to fix this like 3 hours straight, and nothing works…

Here is the save script :

public void Save()
    {
        Objects = 0;
        objects = GameObject.FindGameObjectsWithTag("WeedPlant");
        if (objects != null)
        {
            for (int i = 0; i < objects.Length; i++)
            {
                xPos[Objects] = objects*.gameObject.transform.position.x;*

yPos[Objects] = objects*.gameObject.transform.position.y;*
zPos[Objects] = objects*.gameObject.transform.position.z;*
fert[Objects] = objects*.GetComponent().Fert;//Error*
IsGrown[Objects] = objects*.GetComponent().isGrown; //Error*
Grams[Objects] = objects*.GetComponent().WeedQuant; //Error*
procces[Objects] = objects*.GetComponent().pro; //Error*
water[Objects] = objectsGetComponent().Water; //Error
plantType[Objects] = objects*.GetComponent().PlantType; //Error*
Debug.Log("Plants saved : " + Objects);
Objects++;
}
}
}
Here is the growing script :
public class Growing : MonoBehaviour {

[SerializeField]
public Text weedText;
public bool IsGrowing = true;
public bool isGrown;
private float x;
private float y;
private float z;
private float height;
private float height2;
public int Water;
public int WeedQuant;
public int pro;
public int PlantType;
public bool Boosted;
And in game i have plants with tags “WeedPlant” and Growing script attached to them, but it still says :
NullReferenceException: Object reference not set to an instance of an object
PlantWeed.Save () (at Assets/PlantWeed.cs:92)

Duplicate question. Reuse the one you posted earlier: