I'm getting a null exception while trying to assign a resource to an inputstream
this is my code
InputStream is = null;
BufferedReader br = null;
is = this.getResources().openRawResource(R.raw.worldcities);
br = new BufferedReader(new InputStreamReader(is));
And here is the exception
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)