aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/net/java/sip/communicator/service/protocol/AccountID.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/net/java/sip/communicator/service/protocol/AccountID.java b/src/net/java/sip/communicator/service/protocol/AccountID.java
index 412ce3f..c078c13 100644
--- a/src/net/java/sip/communicator/service/protocol/AccountID.java
+++ b/src/net/java/sip/communicator/service/protocol/AccountID.java
@@ -1005,8 +1005,17 @@ public abstract class AccountID
ProtocolProviderFactory.ENCRYPTION_PROTOCOL
.length() + 1);
- sortedEncryptionProtocols.add(index,
- SrtpControlType.fromString(name));
+ try
+ {
+ sortedEncryptionProtocols.add(index,
+ SrtpControlType.fromString(name));
+ }
+ catch(IllegalArgumentException exc)
+ {
+ logger.error(
+ "Failed to get SRTP control type for name: '"
+ + name + "', key: '" + e.getKey() + "'", exc);
+ }
}
}