joshuapinter / react-native-unified-contacts

Your best friend when working with the latest and greatest Contacts Framework in iOS 9+ in React Native.
MIT License
158 stars 56 forks source link

Attempt to invoke interface method 'boolean android.database.Cursor.moveToFirst()' on a null object reference #91

Open the-nippy opened 5 years ago

the-nippy commented 5 years ago

image

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: image

can anyone help me ? thans thanks thanks ...