为什么android中的SqlLite查询会产生Nullpointer异常我正在使用这段代码
public void onCreate(SQLiteDatabase db)
{
String newTableQueryString = "create table " +TABLE_NAME +" (" +
TABLE_ROW_ID + " integer primary key autoincrement not null," +
TABLE_ROW_ONE + " text," +
TABLE_ROW_TWO + " text" +
");";
Log.e("check","table have been created"+newTableQueryString);
try{
mdb.execSQL(newTableQueryString);//it produce exce[ption
}catch(Exception e)
{
Log.e("Exception"," "+ e.getMessage());
e.printStackTrace();
}
}