Null parameters throws null reference exception #17