android.database.sqlite.SQLiteException

near "null": syntax error (code 1): , while compiling: INSERT INTO log_time(null) VALUES (NULL)

Solutions on the web1761

  • near "null": syntax error (code 1): , while compiling: INSERT INTO log_time(null) VALUES (NULL)
  • near "null": syntax error (code 1): , while compiling: INSERT INTO feed(null) VALUES (NULL)
  • via GitHub by githubityu
    , 6 months ago
    near "null": syntax error (code 1): , while compiling: INSERT INTO testbean(null) VALUES (NULL)
  • Stack trace

    • android.database.sqlite.SQLiteException: near "null": syntax error (code 1): , while compiling: INSERT INTO log_time(null) VALUES (NULL) at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method) at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:887) at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:498) at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588) at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:58) at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:31) at android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:1469) at android.database.sqlite.SQLiteDatabase.insert(SQLiteDatabase.java:1341) at com.livinglifetechway.mytime.db.DatabaseHelper.logScreenUnlock(DatabaseHelper.java:62) at com.livinglifetechway.mytime.ScreenUnlockBroadcastReceiver.onReceive(ScreenUnlockBroadcastReceiver.java:25) at android.app.ActivityThread.handleReceiver(ActivityThread.java:2732) at android.app.ActivityThread.access$1800(ActivityThread.java:153) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1428) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5441) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:738) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:628)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    40 times, 1 year ago
    Unknown user
    Once, 1 year ago
    3 times, 1 year ago
    Unknown user
    2 times, 1 year ago
    Unknown user
    2 times, 1 year ago
    109 more bugmates