fixed odd occurrences of a cursor returned by the system being NULL. wtf ukas
This commit is contained in:
parent
16c63c91e2
commit
d63a9eb306
|
@ -38,6 +38,9 @@ public class PhoneHelper {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onLoadComplete(Loader<Cursor> arg0, Cursor cursor) {
|
public void onLoadComplete(Loader<Cursor> arg0, Cursor cursor) {
|
||||||
|
if (cursor==null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
while (cursor.moveToNext()) {
|
while (cursor.moveToNext()) {
|
||||||
Bundle contact = new Bundle();
|
Bundle contact = new Bundle();
|
||||||
contact.putInt("phoneid", cursor.getInt(cursor
|
contact.putInt("phoneid", cursor.getInt(cursor
|
||||||
|
|
Loading…
Reference in New Issue