Driversnote-Dev / react-native-kontaktio

React Native (iOS and Android) library for Kontakt.io beacons (and all other beacons)
MIT License
112 stars 48 forks source link

Improve error handling of android methods #43

Closed andrekovac closed 5 years ago

andrekovac commented 5 years ago

Android: For every call of so-far non-error-handled methods, check whether its object which is created after the connect() call is defined to avoid null-pointer exceptions. Instead of the exception the Promise will be rejected so that it can seamlessly work inside an async workflow.