Skip to content

Commit

Permalink
presence_xml: Add null check
Browse files Browse the repository at this point in the history
CID #40665
  • Loading branch information
oanatitoc committed Sep 30, 2024
1 parent 66bf0c1 commit c86d348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/presence_xml/notify_body.c
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ str* agregate_presence_xmls(str* pres_user, str* pres_domain, str** body_array,

for(i = 0; i < n; i++)
{
if(body_array[i] == NULL )
if(!body_array || !body_array[i])
continue;

xml_array[j] = NULL;
Expand Down

0 comments on commit c86d348

Please sign in to comment.