Initialise array before using it
Merge pull request #338 from timschofield/develop

Initialise array before using it