fixed rare npe in loading of selfi

This commit is contained in:
iNPUTmice 2014-07-30 21:24:42 +02:00
parent f765dc8423
commit 8a5f9f1488
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ public class PhoneHelper {
Cursor mProfileCursor = context.getContentResolver().query( Cursor mProfileCursor = context.getContentResolver().query(
Profile.CONTENT_URI, mProjection, null, null, null); Profile.CONTENT_URI, mProjection, null, null, null);
if (mProfileCursor.getCount() == 0) { if (mProfileCursor == null || mProfileCursor.getCount() == 0) {
return null; return null;
} else { } else {
mProfileCursor.moveToFirst(); mProfileCursor.moveToFirst();