Commit ff2b6b06 authored by Gant Laborde's avatar Gant Laborde Committed by GitHub

Merge pull request #154 from testquepp/patch-1

Update RNDeviceModule.java
parents 50e68b4a fbee7259
......@@ -92,7 +92,9 @@ public class RNDeviceModule extends ReactContextBaseJavaModule {
try {
BluetoothAdapter myDevice = BluetoothAdapter.getDefaultAdapter();
deviceName = myDevice.getName();
if(mDevice!=null){
deviceName = myDevice.getName();
}
} catch(Exception e) {
e.printStackTrace();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment