Result NPE caused by validate()