使用删除时出现空指针异常

时间:2010-07-18 02:20:34

标签: android sqlite

 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)给了我一个空指针异常

2 个答案:

答案 0 :(得分:1)

答案 1 :(得分:0)

dDbHelperinfonull