title: Created new class Edit profile. Login works fine, but getting null pointer on verifyEditProfile()
body: <pre><code>public class EditProfile {
  // public static WebDriver driver;
  
   //public TestLogin login;
  // public static String baseURL = Configuration.testsite;
   TestLogin login = new TestLogin();
   public static WebDriver driver; 
  
  @BeforeClass 
  @Parameters("browser")
  public void LoginToAnalytics() throws Exception{
      //WebDriver driver = new FirefoxDriver();
      login.setup("Firefox");
      login.testLogin();
  }
  
  analyticsLoginPage mylogin = PageFactory.initElements(driver, analyticsLoginPage.class);
  </code></pre>
  
  <p>********//Edit Progile test that fails******</p>
  
  <pre><code>@Test//(dependsOnMethods = { "testLogin" })
  </code></pre>
  
  <p>///******** Edit profile code </p>
  
  <pre><code>public void verifyEditProfile() throws InterruptedException {
  
  *******//Getting null pointer here. Please help me understand why.///////
  
      analyticsLandingPage landingpage = PageFactory.initElements(driver, analyticsLandingPage.class);
  </code></pre>
  
  <p>*******///This will work fine once it gets to this part</p>
  
  <pre><code>    analyticsEditProfilePage editprofile = PageFactory.initElements(driver, analyticsEditProfilePage.class);
  </code></pre>
  
  <p>*******waiting for page to load ///////////</p>
  
  <pre><code>    Thread.sleep(3000L);
      landingpage.gotoProfile();
  
      /////This part is not running because of the error***////
  
      editprofile.verifyEditFirstName();
  
  }
  }
  </code></pre>