Here's an excerpt of my prorgam:
package something.util;
public class Reports {
public static void logStatus(LogStatus testStatus, String testDetails) {
test.log(testStatus, testDetails);
}
}
package something.pages;
public class MainPage {
public void someMethod(){
Reports.logStatus(LogStatus.INFO, "Clicked A/B Testing link");
}
}
When I execute the code above, I keep getting NullPointerException and I am not sure why. At least a pointer to the mistake I'm making will help.