Make sure activity isn't null when entering the information.