prevent throw exception if has default value

prevent throw exception if parameter has default value