resolved null point exception.