views:

36

answers:

1
 AdapterContextMenuInfo info = (AdapterContextMenuInfo) item.getMenuInfo();

                dDbHelper.deletedJournal(info.id);
                mDbHelper.deleteJournal(info.id);


public boolean deletedJournal(long homeId){

        return mDb.delete(DATABASE_TABLE, KEY_HOMEID + "=" + homeId, null )>0;
    }

dDbHelper.deletedJournal(info.id) gives me a null pointer exception

A: 

Either dDbHelper or info is null.

SLaks