react-native-unified-contacts
react-native-unified-contacts copied to clipboard
Attempt to invoke interface method 'boolean android.database.Cursor.moveToFirst()' on a null object reference
My android version is 9.0, API28. React Native version is 0.59.9.
happened when i called function getContacts() like this:
Contacts.getContacts( (error, contacts) => {
if (error) {
console.error(error);
}
else {
console.log(contacts);
// Alert.alert('A',contacts)
}
});
java file line 625:
can anyone help me ? thans thanks thanks ...