check null value in activity result