Skip to content

NullPointerException at Java8StepDefinition.isDefinedAt #1217

@mpkorstanje

Description

@mpkorstanje

Summary

Test failure produces this stack trace. Not sure about the circumstances:

java.lang.NullPointerException
	at cucumber.runtime.java8.Java8StepDefinition.isDefinedAt(Java8StepDefinition.java:111)
	at cucumber.runtime.StepDefinitionMatch.removeFrameworkFramesAndAppendStepLocation(StepDefinitionMatch.java:153)
	at cucumber.runtime.StepDefinitionMatch.runStep(StepDefinitionMatch.java:44)
	at cucumber.api.TestStep.executeStep(TestStep.java:78)
	at cucumber.api.TestStep.run(TestStep.java:61)
	at cucumber.api.TestCase.run(TestCase.java:28)
	at cucumber.runner.Runner.runPickle(Runner.java:80)
	at cucumber.runtime.junit.PickleRunners$NoStepDescriptions.run(PickleRunners.java:140)
	at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:68)
	at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:23)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:73)
	at cucumber.api.junit.Cucumber.runChild(Cucumber.java:99)
	at cucumber.api.junit.Cucumber.runChild(Cucumber.java:41)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.apache.maven.surefire.junitcore.pc.Scheduler$1.run(Scheduler.java:393)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

Your Environment

  • Version used: cucumber-jvm:2.0.0
  • Operating System and version: Unix

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions