aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/impl/callhistory
diff options
context:
space:
mode:
authorhristoterezov <hristo@jitsi.org>2014-02-17 18:43:53 +0200
committerhristoterezov <hristo@jitsi.org>2014-02-17 18:43:53 +0200
commit744d44d3f297722102cff95df7497b6deb6611e7 (patch)
treee28c231eae7795a15332f1aecc236a6c46c45c79 /src/net/java/sip/communicator/impl/callhistory
parent8ddaf872ed7efbf58023fb1d7616eea350553194 (diff)
downloadjitsi-744d44d3f297722102cff95df7497b6deb6611e7.zip
jitsi-744d44d3f297722102cff95df7497b6deb6611e7.tar.gz
jitsi-744d44d3f297722102cff95df7497b6deb6611e7.tar.bz2
Fixes index out of bounds exception in call history service.
Diffstat (limited to 'src/net/java/sip/communicator/impl/callhistory')
-rw-r--r--src/net/java/sip/communicator/impl/callhistory/CallHistoryServiceImpl.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net/java/sip/communicator/impl/callhistory/CallHistoryServiceImpl.java b/src/net/java/sip/communicator/impl/callhistory/CallHistoryServiceImpl.java
index 5a61f07..cd91110 100644
--- a/src/net/java/sip/communicator/impl/callhistory/CallHistoryServiceImpl.java
+++ b/src/net/java/sip/communicator/impl/callhistory/CallHistoryServiceImpl.java
@@ -486,7 +486,10 @@ public class CallHistoryServiceImpl
callPeerStartValue,
callPeerEndValue);
- String callPeerSecondaryID = callPeerSecondaryIDs.get(i);
+ String callPeerSecondaryID = null;
+ if(!callPeerSecondaryIDs.isEmpty())
+ callPeerSecondaryID = callPeerSecondaryIDs.get(i);
+
if(callPeerSecondaryID != null && !callPeerSecondaryID.equals(""))
{
cpr.setPeerSecondaryAddress(callPeerSecondaryID);