fixed operations on null arrays