#vulnerable code 
                             public boolean validate(UserPersonalInfo info) {
		
		validator.validate(info);
		
		if (info.getUser() == null) {
		    validator.add(new ValidationMessage("error","user.errors.wrong"));
		}
		
		if(!info.getUser().getName().equals(info.getName())){
			userNameValidator.validate(info.getName());
		}
		
		if (!info.getUser().getEmail().equals(info.getEmail())){
			emailValidator.validate(info.getEmail());
		}
		
		return !validator.hasErrors();
	} 
                            #location 9 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                             public boolean validate(UserPersonalInfo info) {
		
		validator.validate(info);
		
		if (info.getUser() == null) {
		    validator.add(new ValidationMessage("user.errors.wrong", "error"));
		}
		
		if(!info.getUser().getName().equals(info.getName())){
			userNameValidator.validate(info.getName());
		}
		
		if(!info.getUser().getEmail().equals(info.getEmail())){
			emailValidator.validate(info.getEmail());
		}
		
		if(info.getUser().getNameLastTouchedAt() != null){
			if(info.getUser().getNameLastTouchedAt().isAfter(new DateTime().minusDays(30))){
				validator.add(new ValidationMessage("user.errors.name.min_time", "error"));
			}
		}
		
		return !validator.hasErrors();
	}