cucumber-attic / gherkin2

A fast Gherkin parser in Ragel (The parser behind Cucumber)
MIT License
381 stars 220 forks source link

Durations are Longs not longs as they are optional #276

Closed jtnord closed 10 years ago

jtnord commented 11 years ago

The model already treats the Duration as a Long but the parser insitst its a long causing Longs to be unboxed and then re-boxed. if the duration is missing (as the result is skipped) then this causes a null pointer exception trying to parse the json.

jtnord commented 11 years ago

see https://github.com/cucumber/gherkin/commit/ac42f519a574ca26bd35da13bbbe2036320b697f#commitcomment-4164176