aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2014-06-09 10:54:51 +0400
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2014-06-09 10:55:05 +0400
commit87f8c2ecd85101415020ed8e0a1534550bd15e79 (patch)
tree753b1f8e6e7488bef2131fef8576e21763ea19b7 /src
parentFix previous commit (diff)
Don't stop roster table conversion on broken askmessage
Diffstat (limited to 'src')
-rw-r--r--src/mod_roster.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mod_roster.erl b/src/mod_roster.erl
index 4ab8239b5..01646229f 100644
--- a/src/mod_roster.erl
+++ b/src/mod_roster.erl
@@ -1319,7 +1319,8 @@ update_roster_table() ->
iolist_to_binary(R2)},
name = iolist_to_binary(Name),
groups = [iolist_to_binary(G) || G <- Gs],
- askmessage = iolist_to_binary(Ask),
+ askmessage = try iolist_to_binary(Ask)
+ catch _:_ -> <<"">> end,
xs = [xml:to_xmlel(X) || X <- Xs]}
end);
_ ->