returning null instead of rethrowing exception