# HG changeset patch # User Emmanuel Gil Peyrot # Date 1507573359 -3600 # Node ID 5124050777098afbba95c207f1a662e35a425538 # Parent 750572f6f59d45cd1184839e04bc70f026fdebdc mod_measure_stanza_counts: Fix a crash in mod_bosh. diff -r 750572f6f59d -r 512405077709 mod_measure_stanza_counts/mod_measure_stanza_counts.lua --- a/mod_measure_stanza_counts/mod_measure_stanza_counts.lua Mon Oct 09 20:15:33 2017 +0200 +++ b/mod_measure_stanza_counts/mod_measure_stanza_counts.lua Mon Oct 09 19:22:39 2017 +0100 @@ -8,7 +8,7 @@ return function (stanza, session) measures[dir](); measures[dir .. "_" .. session.type](); - if not stanza.attr.xmlns and stanza_kinds[stanza.name] then + if stanza.attr and not stanza.attr.xmlns and stanza_kinds[stanza.name] then measures[dir .. "_" .. session.type .. "_" .. stanza.name](); end return stanza;