summaryrefslogtreecommitdiffstats
path: root/java/org/direct_bt/BTGattService.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/org/direct_bt/BTGattService.java')
-rw-r--r--java/org/direct_bt/BTGattService.java3
1 files changed, 0 insertions, 3 deletions
diff --git a/java/org/direct_bt/BTGattService.java b/java/org/direct_bt/BTGattService.java
index 62cd04ec..592ca9fc 100644
--- a/java/org/direct_bt/BTGattService.java
+++ b/java/org/direct_bt/BTGattService.java
@@ -88,9 +88,6 @@ public interface BTGattService extends BTObject
if( null == listener ) {
throw new IllegalArgumentException("listener argument null");
}
- if( null != listener.getAssociatedChar() ) {
- throw new IllegalArgumentException("listener's associated characteristic is not null");
- }
final boolean res = device.addCharListener(listener);
for(final Iterator<BTGattService> is = services.iterator(); is.hasNext(); ) {
final BTGattService s = is.next();