android null pointer exception in Application
<p>i have an activity which initialize a variable of my Application class (AppVariables):</p>

<pre><code>protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    app = (AppVariables) getApplicationContext();
}
</code></pre>

<p>when using this if condition which check if a drawable is null or not i get a null pointer exception from some reason:</p>

<pre><code>    if (app.getFacebookCurrentUser().getProfilePicture() != null)
</code></pre>

<p>can't really under stand why.. i am checking if it null.. </p>
