Seems fairly straight forward, you're trying to access something that is null.
For one thing, you're specifying wandMods is 3 elements, and on a good day you're only setting 2.
You need to lower the size of the array to a proper one, and also add in a null check before you try to access soemthing that is possibly null.