aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/service
diff options
context:
space:
mode:
authorYana Stamcheva <yana@jitsi.org>2010-11-22 11:01:21 +0000
committerYana Stamcheva <yana@jitsi.org>2010-11-22 11:01:21 +0000
commitd394dde36621a50c7200cc248aba0ccb4cfbf811 (patch)
treedb9e02ca9f2f647a19ee919733ca5b6b49c44a78 /src/net/java/sip/communicator/service
parent082a191d14c583a0c8bb20e9a84cf8fd792a9807 (diff)
downloadjitsi-d394dde36621a50c7200cc248aba0ccb4cfbf811.zip
jitsi-d394dde36621a50c7200cc248aba0ccb4cfbf811.tar.gz
jitsi-d394dde36621a50c7200cc248aba0ccb4cfbf811.tar.bz2
Fixes IndexOutOfBoundsException in Call History, prevents the gui from crashing in any exceptions coming from contact list filters and adds some logs in order to better analyze the situation, which provoked the exception in first place.
Diffstat (limited to 'src/net/java/sip/communicator/service')
-rw-r--r--src/net/java/sip/communicator/service/history/records/HistoryRecord.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/service/history/records/HistoryRecord.java b/src/net/java/sip/communicator/service/history/records/HistoryRecord.java
index 06488df..c645fcf 100644
--- a/src/net/java/sip/communicator/service/history/records/HistoryRecord.java
+++ b/src/net/java/sip/communicator/service/history/records/HistoryRecord.java
@@ -100,4 +100,20 @@ public class HistoryRecord
{
return (timestamp == null) ? 0 : timestamp.getTime();
}
+
+ /**
+ * Returns the String representation of this HistoryRecord.
+ *
+ * @return the String representation of this HistoryRecord
+ */
+ public String toString()
+ {
+ String s = "History Record: ";
+ for (int i = 0; i < propertyNames.length; i++)
+ {
+ s += propertyNames[i] + "=" + propertyValues[i] + "\n";
+ }
+
+ return s;
+ }
}