eclipse-archived / smarthome

Eclipse SmartHome™ project
https://www.eclipse.org/smarthome/
Eclipse Public License 2.0
865 stars 781 forks source link

[bluetooth, bluez]Check device !=null on dispose() #6740

Open robertoinberlin opened 5 years ago

robertoinberlin commented 5 years ago

https://github.com/eclipse/smarthome/blob/4d2c0d0c05f98ea09a9483b22212bf826a91e1b9/extensions/binding/org.eclipse.smarthome.binding.bluetooth.bluez/src/main/java/org/eclipse/smarthome/binding/bluetooth/bluez/BlueZBluetoothDevice.java#L397

robertoinberlin commented 5 years ago
public void dispose() {
  if (device!=null){
        disableNotifications();
    }
}
maggu2810 commented 5 years ago

Do you consider to create a PR so we can merge this change?