z183052114
z183052114
2017-03-20 07:50

android sqlite 查询报错

  • sqlite
java.lang.NullPointerException: Attempt to invoke virtual method 'android.database.sqlite.SQLiteDatabase android.content.Context.openOrCreateDatabase(java.lang.String, int, android.database.sqlite.SQLiteDatabase$CursorFactory, android.database.DatabaseErrorHandler)' on a null object reference;


    报错的是这一行  :     db = helper.getWritableDatabase();
  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答