Fixed null code

Quick change to MainActivity