we now register a persistent presence operation set also as a simple operation set so no need to do the probing any more

cusax-fix
Emil Ivov 20 years ago
parent ba9ecb6db4
commit 5aafcbe97c

@ -64,22 +64,14 @@ protected void setUp() throws Exception
(OperationSetPresence)supportedOperationSets.get(
OperationSetPresence.class.getName());
//if the op set is null then the implementation doesn't offer a presence
//operation set which is unacceptable for icq.
if (operationSetPresence == null)
{
//if the operation set is still null, it's maybe because the impl
//only registers a persistence operation set. Let's see if that is
//the case.
operationSetPresence =
(OperationSetPersistentPresence) supportedOperationSets.get(
OperationSetPersistentPresence.class.getName());
//if still null then the implementation doesn't offer a presence
//operation set which is unacceptable for icq.
if (operationSetPresence == null)
throw new NullPointerException(
"An implementation of the ICQ service must provide an "
+ "implementation of at least the one of the Presence "
+ "Operation Sets");
throw new NullPointerException(
"An implementation of the ICQ service must provide an "
+ "implementation of at least the one of the Presence "
+ "Operation Sets");
}
}

Loading…
Cancel
Save