Fix npe when none of data or callback