januslo / react-native-bluetooth-escpos-printer

React-Native plugin for the bluetooth ESC/POS & TSC printers.
MIT License
359 stars 416 forks source link

java.lang.NullPointerException: Attempt to invoke interface method 'void com.facebook.react.bridge.Callback.invoke(java.lang.Object[])' on a null object reference #140

Open dilippylee opened 3 years ago

dilippylee commented 3 years ago

java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=2, result=-1, data=null} to activity {com.mytranspot/com.mytranspot.MainActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'void com.facebook.react.bridge.Callback.invoke(java.lang.Object[])' on a null object reference

Getting this error when BluetoothManager.enableBluetooth() is called. Bluetooth is getting enabled, but app is crashing.

"react": "16.8.6",
"react-native": "^0.63.4",
"react-native-bluetooth-escpos-printer": "0.0.5"

Please help

hoanganhnh2009 commented 3 years ago

you fixed it? can you help me?