Handle null point exception