avoid null point exception