24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-14 22:00:16 +02:00

Don't stop roster table conversion on broken askmessage

This commit is contained in:
Evgeniy Khramtsov 2014-06-09 10:54:51 +04:00
parent 62be3bc111
commit 87f8c2ecd8

View File

@ -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);
_ ->