Saurav Mukherjee wrote:
> db = dbHelper.getWritableDatabase();
>         table = db.rawQuery("select * from PROJECTS", null);
>         boolean f = false;
>         taskList = new ArrayList<String>();
>         while (table.moveToNext()) {
>             if (table.getString(1).equals(selectedProject)) {
>                 f = true;
>                 taskList.add(table.getString(3));
> 
> 
> 
> this is a part of my code...
> point is i ve created the tables properly n wen i print the column count
> n row count, its all updated...
> also durin insert (not shown), i ve checked the return, n it returns the
> rowid!!!
> there is an exception at the line:                " if
> (table.getString(1).equals(selectedProject)) { "     in the above code...
> 
> any ideas that might help me to remove the exception???

You could look at the stack trace, via adb logcat or DDMS, to see what
the exception is. For example, if it is a NullPointerException, then
probably table.getString(1) is returning NULL.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Development Wiki: http://wiki.andmob.org

--~--~---------~--~----~------------~-------~--~----~
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