According to stack trace, your code gets past opening the database.

And then:

package.Tabs.checkListName(DbAdapter.java:310

... calls db.query() passing a null value in the list of query arguments (the new String[] { ... arg1, arg2 ... } part).

This is not allowed, and causes the exception inside Andorid's database classes.

-- Kostya

04.10.2011 17:40, André пишет:
15:02:28.791: ERROR/AndroidRuntime(8904): Caused by:
java.lang.IllegalArgumentException: the bind value at index 1 is null

10-04 15:02:28.791: ERROR/AndroidRuntime(8904):     at
android.database.sqlite.SQLiteProgram.bindString(SQLiteProgram.java:
237)

10-04 15:02:28.791: ERROR/AndroidRuntime(8904):     at
android.database.sqlite.SQLiteQuery.bindString(SQLiteQuery.java:185)

10-04 15:02:28.791: ERROR/AndroidRuntime(8904):     at
android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:
59)

10-04 15:02:28.791: ERROR/AndroidRuntime(8904):     at
android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:
1438)

10-04 15:02:28.791: ERROR/AndroidRuntime(8904):     at
android.database.sqlite.SQLiteDatabase.queryWithFactory(SQLiteDatabase.java:
1317)

10-04 15:02:28.791: ERROR/AndroidRuntime(8904):     at
android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1271)

10-04 15:02:28.791: ERROR/AndroidRuntime(8904):     at
android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1391)

10-04 15:02:28.791: ERROR/AndroidRuntime(8904):     at
package.Tabs.checkListName(DbAdapter.java:310)

10-04 15:02:28.791: ERROR/AndroidRuntime(8904):     at
package.Main.getListId(Main.java:567)

10-04 15:02:28.791: ERROR/AndroidRuntime(8904):     at
package.Main.fillItems(Main.java:191)

--
Kostya Vasilyev

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to