return immediately if the activity is null