fixed odd occurrences of a cursor returned by the system being NULL. wtf ukas

iNPUTmice created

Change summary

src/eu/siacs/conversations/utils/PhoneHelper.java | 3 +++
1 file changed, 3 insertions(+)

Detailed changes

src/eu/siacs/conversations/utils/PhoneHelper.java 🔗

@@ -38,6 +38,9 @@ public class PhoneHelper {
 
 			@Override
 			public void onLoadComplete(Loader<Cursor> arg0, Cursor cursor) {
+				if (cursor==null) {
+					return;
+				}
 				while (cursor.moveToNext()) {
 					Bundle contact = new Bundle();
 					contact.putInt("phoneid", cursor.getInt(cursor