Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException in Hook.java #134

Open
knavalg opened this issue Sep 20, 2023 · 0 comments
Open

NullPointerException in Hook.java #134

knavalg opened this issue Sep 20, 2023 · 0 comments

Comments

@knavalg
Copy link

knavalg commented Sep 20, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant