title: Getting null pointer exception that I can't figure out
body: <p>I have been working on this issue for a while. I keep getting a null pointer exception on the following function, the myProfile variable is a reference to another class that had been declared at the beginning as private UserProfile myProfile, where UserProfile is the original class, I believe that is where I'm running into the problem.: </p>
  
  <pre><code>public void saveProfile()
  {
      if ((myProfile!=(null)) &amp;&amp; !(myProfile.getName().isEmpty()))
      {
          profiles.put(myProfile.getName(), myProfile);
      }
  }
  </code></pre>