# HG changeset patch # User JC Brand # Date 1490089383 0 # Node ID 2bfa7d47609260c5bd9629b2de2ef42ff9ae16ee # Parent 96eb1c4f9ff7b76833054b2941f79acd948a84a7 mod_http_roster_admin: Don't call callback if it's nil diff -r 96eb1c4f9ff7 -r 2bfa7d476092 mod_http_roster_admin/mod_http_roster_admin.lua --- a/mod_http_roster_admin/mod_http_roster_admin.lua Tue Mar 21 09:31:13 2017 +0000 +++ b/mod_http_roster_admin/mod_http_roster_admin.lua Tue Mar 21 09:43:03 2017 +0000 @@ -118,7 +118,9 @@ removed = removed + 1; end module:log("debug", "User %s: added %d new contacts, removed %d contacts", username, added, removed); - cb(true); + if cb ~= nil then + cb(true); + end end); end