Null Pointer Exception while fetching cursor object

view story

http://stackoverflow.com – I am getting null pointer exception while fetching the data from the SQLite table. I am getting the null pointer exception when fetching the data using cursor like below Cursor c= db.fetchAllData(); Please have a look at the below precise code, and suggest me some ideas... display_transaction.class public class display_transaction extends Activity { DisplayTestDBHelper db; protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.display_listview); displayListView(); } public void displayListV (HowTos)