Fixed issue with null pointer in array.