Skip to content

NullPointerException in Hook.java #134

Description

@knavalg

Hi,

  1. I just now downloaded the code and when I run the LoginStep feature I am getting the NullPointerException:

Step failed
java.lang.NullPointerException
at steps.Hook.InitializeTest(Hook.java:34)

I understand why we get this exception because we are not creating an instance of BaseUtil. How an instance of BaseUtil is created and passed to Hook and LoginUtil?

  1. Saw the video "Part 9 - Dependency Injection with Picocontainer for cucumber" of "Cucumber wit Selenium Java (Basic)", there also its not mentioned how Hook class constructor is called. so could you please explain.

Thanks
Krishna

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions