i'm doing a piece of C# coursework where I have had to make a Space Invaders style game. I am unsure as to how, but I keep running into this error
System.NullReferenceException
Object reference not set to an instance of an object
This is the code I currently have:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Runtime.Serialization;
namespace Space_Invaders_Clone
{
    public partial class Form1 : Form
    {
        int BulletsCreated = 0;
        PictureBox[] bullets = new PictureBox[999];
        public Form1()
        {
            InitializeComponent();
        }
        private void Form1_KeyDown(object sender, KeyEventArgs e)
        {
            //MessageBox.Show(e.KeyValue.ToString());
            if (e.KeyValue == 37 && Turret.Left > 12)
            {
                Turret.Left = Turret.Left - 5;
            }
            if (e.KeyValue == 39 && Turret.Left < 593)
            {
                Turret.Left = Turret.Left + 5;
            }
            if (e.KeyValue == 32)
            {
                bullets[BulletsCreated] = new PictureBox();
                bullets[BulletsCreated].Width = 2;
                bullets[BulletsCreated].Height = 24;
                bullets[BulletsCreated].BackColor = Color.Cyan;
                bullets[BulletsCreated].Top = Turret.Top - 26;
                bullets[BulletsCreated].Left = Turret.Left + Turret.Width / 2;
                bullets[BulletsCreated].Enabled = true;
                bullets[BulletsCreated].Visible = true;
                this.Controls.Add(bullets[BulletsCreated]); //add to controls
                BulletsCreated++;
            }
        }
                    private void BulletTimer_Tick(object sender, EventArgs e)
        {
            bullets[0].Top = bullets[0].Top - 10;
        }
    }
}
The Error Occurs on this line :
bullets[0].Top = bullets[0].Top - 10;
What have I done wrong?
 
    