diff options
author | hristoterezov <hristo@jitsi.org> | 2014-02-17 18:43:53 +0200 |
---|---|---|
committer | hristoterezov <hristo@jitsi.org> | 2014-02-17 18:43:53 +0200 |
commit | 744d44d3f297722102cff95df7497b6deb6611e7 (patch) | |
tree | e28c231eae7795a15332f1aecc236a6c46c45c79 /src/net/java/sip/communicator/impl/callhistory | |
parent | 8ddaf872ed7efbf58023fb1d7616eea350553194 (diff) | |
download | jitsi-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.java | 5 |
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); |