Getting Null pointer Exception for extent report
<p>Getting Null pointer Exception for extent report (Same code working fine in other laptop)</p>

<pre><code>public class testreport {

  public static ExtentReports report;
  public static ExtentTest test;
  static WebDriver driver;

  public static void main(String[] args) {
    // TODO Auto-generated method stub

    report=new   ExtentReports("D:\\test.htm",true,DisplayOrder.OLDEST_FIRST,NetworkMode.ONLINE);
    test=report.startTest("Testing");

    driver=new FirefoxDriver();
    driver.get(URL);

  } 
}
</code></pre>

<p>i have been created 20 scripts by same pattern in one laptop and it is working good i haven't get any null pointer exception for extent report.</p>

<p>After i configured everything in second laptop and try to execute the script it is displaying following error...</p>

<blockquote>
  <p>Exception in thread "main" java.lang.NullPointerException at com.relevantcodes.extentreports.Report.(Report.java:606) at com.relevantcodes.extentreports.ExtentReports.(ExtentReports.java:72) at com.relevantcodes.extentreports.ExtentReports.(ExtentReports.java:139) at testpage.testreport.main(testreport.java:20)</p>
</blockquote>