Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2015
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. // looping through all rows and adding to list
  2. if (cursor.moveToFirst()) {
  3. do {
  4. String contactname0 = ContactsHelper.getContactName(context, cursor.getString(0));
  5. String contactname2 = ContactsHelper.getContactName(context, cursor.getString(2));
  6. List.add(contactname0+": "+contactname2);
  7. } while (cursor.moveToNext());
  8. }
  9. cursor.close();
  10. return List;
  11. }
  12.  
  13. 08-03 17:10:56.281: E/AndroidRuntime(6301): java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement