Null at android.content.ContextWrapper.getResources(ContextWrapper.java:80)
<p>I'm getting a null exception while trying to assign a resource to an inputstream</p>

<p>this is my code</p>

<pre><code>InputStream is = null;
    BufferedReader br = null;

    is = this.getResources().openRawResource(R.raw.worldcities);

    br = new BufferedReader(new InputStreamReader(is));
</code></pre>

<p>And here is the exception</p>

<pre><code>11-03 15:49:07.476: E/AndroidRuntime(223): Uncaught handler: thread main exiting due    to uncaught exception
11-03 15:49:07.486: E/AndroidRuntime(223): java.lang.NullPointerException
11-03 15:49:07.486: E/AndroidRuntime(223):  at    android.content.ContextWrapper.getResources(ContextWrapper.java:80)
11-03 15:49:07.486: E/AndroidRuntime(223):  at com.karriapps.smartsiddur.Splash.readCSV(Splash.java:253)
</code></pre>
