null checking getExtras()