Better exception when given null