Getter and setter in Hyrid Framework Null Pointer Exception | Selenium Forum
R
Roshan Karkera Posted on 07/07/2020

Dear Sir,

 

I am currently at Part 4 of Hybrid Framework and I am stuck at Getter and Setter for Properities file. When I run, it is giving Null Pointer exception. I verified the code as what you showed in video and download code but same error. (Video Timining 37:00)

 

Driver Script :

public Properties getEnvProp() {
return envProp;
}

public void setEnvProp(Properties envProp) {
this.envProp = envProp;
}

public Properties getProp() {
return prop;
}

public void setProp(Properties prop) {
this.prop = prop;
}

 


R
Roshan Karkera Replied on 08/07/2020

I created same DriverScript Object in Login Test again so multiple object was causing issue. Please close this question as I dont see option to close.


Related Posts