state.job null check