Throw an exception for null param rather than silently returning