OttoDIY / OttoDIYApp

Otto Mobile App built in React Native, to download and use just get it here:
https://www.ottodiy.com/academy
23 stars 14 forks source link

Sentry app issue - NullPointerException by onConnectionFailed #48

Closed chico closed 4 years ago

chico commented 4 years ago

Fix the following exception that is happening on Sentry: java.lang.NullPointerException: Attempt to invoke interface method 'void com.facebook.react.bridge.Callback.invoke(java.lang.Object[])' on a null object reference at com.facebook.react.bridge.PromiseImpl.reject(PromiseImpl.java:232) at com.facebook.react.bridge.PromiseImpl.reject(PromiseImpl.java:105) at com.rusel.RCTBluetoothSerial.RCTBluetoothSerialModule.onConnectionFailed(RCTBluetoothSerialModule.java:449) at com.rusel.RCTBluetoothSerial.RCTBluetoothSerialService.connectionFailed(RCTBluetoothSerialService.java:157) at com.rusel.RCTBluetoothSerial.RCTBluetoothSerialService.access$300(RCTBluetoothSerialService.java:23) at com.rusel.RCTBluetoothSerial.RCTBluetoothSerialService$ConnectThread.run(RCTBluetoothSerialService.java:245)

chico commented 4 years ago

Fixed by https://github.com/OttoDIY/OttoDIYApp/pull/49