{"issue":{"state":"closed","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/67a08b5f7a03046da9eedaa33c234675?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"67a08b5f7a03046da9eedaa33c234675","url":"https://api.github.com/users/gisode","login":"gisode","id":1156499},"assignee":null,"updated_at":"2011-11-15T19:30:37Z","labels":[],"closed_at":"2011-11-15T19:30:37Z","comments":0,"url":"https://api.github.com/repos/cucumber/cucumber-jvm/issues/90","body":"Given the stepdef\r\n\r\n    @Given(\"^foo (?:(\\\\d+) )?bar$\")\r\n    public void foo(Integer i) {\r\n    }\r\n\r\nThen the step\r\n\r\n    Given foo 3 bar\r\n\r\nworks fine but\r\n\r\n    Given foo bar\r\n\r\nthrows\r\n\r\n    com.thoughtworks.xstream.converters.ConversionException: Cannot parse date null\r\n\tat cucumber.runtime.converters.ConverterWithFormat.fromString(ConverterWithFormat.java:26)\r\n\tat cucumber.runtime.converters.ConverterWithNumberFormat.fromString(ConverterWithNumberFormat.java:19)\r\n\tat cucumber.runtime.converters.ConverterWithNumberFormat.fromString(ConverterWithNumberFormat.java:1)\r\n\tat com.thoughtworks.xstream.converters.SingleValueConverterWrapper.fromString(SingleValueConverterWrapper.java:41)\r\n\tat cucumber.runtime.StepDefinitionMatch.transformedArgs(StepDefinitionMatch.java:78)\r\n\tat cucumber.runtime.StepDefinitionMatch.runStep(StepDefinitionMatch.java:44)\r\n\r\nwhen it should set the parameter `i` to `null`.\r\n\r\nIn regard to the error message, this is related to #88","html_url":"https://github.com/cucumber/cucumber-jvm/issues/90","title":"Cryptic error when an optional scalar is not present in step","number":90,"id":2230574,"created_at":"2011-11-14T13:46:28Z"},"action":"closed"}