Return null in error state when pass is not set to a vlaue.