pass array with a single nullptr instead of nullptr for compatibility