NullReferenceException with array in c#

I have a spawner class that is trying to spawn plants in the world. I can initialize the array and the debug statement prints out everything right. When it tries to reference the array in spawnPlant()at line 25, it throws a null reference exception. I initialize everything in awake, but it is treating it like i never did, can anyone point out where I have gone wrong?

using UnityEngine;
using System.Collections;

public class PlantSpawner : MonoBehaviour {
   private GameObject[] plants;

	// Use this for initialization
	void Awake () {
        plants = new GameObject[3];
        int i=0;
        foreach (GameObject g in Resources.LoadAll("GamePrefabs/WorldObjects/Plants")) {
            plants *= Instantiate(g);*


  • }*

  • // Update is called once per frame*

  • void Update () {*

  • }*
    public void spawnPlant() {
    GameObject spawningPlant;
    int spawnnumber=(int)Random.Range(0,2);
    int o = plants.Length;
    Debug.Log("Plant Array Length: "+o);
    if (plants.Length>=0) {
    spawningPlant.transform.position = new Vector3(940,1,970);

plants = Instantiate(g); => it’s wrong!
try to use plants = g;
hope it help!