return null instead of throwing an exception