handle null value on primitive array