From ab36a2dcfd29c5843d416f8e9d3265348b85bd6d Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 9 Apr 2022 01:31:09 +0200 Subject: DBTGattChar.findGattDesc() (java): Fix wrong comparison (inverse, typo) --- java/jau/direct_bt/DBTGattChar.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java') diff --git a/java/jau/direct_bt/DBTGattChar.java b/java/jau/direct_bt/DBTGattChar.java index 2229a977..0d44d983 100644 --- a/java/jau/direct_bt/DBTGattChar.java +++ b/java/jau/direct_bt/DBTGattChar.java @@ -145,7 +145,7 @@ public class DBTGattChar extends DBTObject implements BTGattChar return null; } final DBTDevice device = service.wbr_device.get(); - if( null != device ) { + if( null == device ) { return null; } final int size = descriptorList.size(); -- cgit v1.2.3