Working on null arrays when backing from dialog