cucumber/cucumber-jvm — Issue #250: Use of tabular data with cucumber-jvm for Clojure results in NullPointerException
Author: nilswloka
Created: 2012-03-09 21:37:42+00:00
State: open

Looks like a bug in `cucumber.runtime.StepDefinitionMatch` where the [code that deals with tabular data][1] calls `getGenericListType(int)`, which in turn dereferences `StepDefinition#getParameterTypes()`.

Unfortunately, `cucumber.runtime.clojure.ClojureStepDefinition#getParameterTypes()` [always returns][2] `null`, thus resulting in the NPE.

(also see http://stackoverflow.com/questions/9622832/npe-attempting-to-read-tabular-data-in-cucumber-jvm-cucumber-clojure for problem and analysis).

[1]: https://github.com/cucumber/cucumber-jvm/blob/master/core/src/main/java/cucumber/runtime/StepDefinitionMatch.java#L136
[2]: https://github.com/cucumber/cucumber-jvm/blob/master/clojure/src/main/java/cucumber/runtime/clojure/ClojureStepDefinition.java#L44