I assume you declared the array, otherwise you would have a compiler error. However, it looks like you didn't initialize the array using the "new" keyword. When you initialize the array depends on how you determine its size. Typically, you can initialize it when you declare it, like this:
If you need more help than this example gives, please post the declaration for this array.