Check for null when showing activity