Quick fix. Had an array with null elements from an earlier test.