Don't try to populate a NULL array. That is doomed to fail.