Skip to content

fix: Don't crash on PEP items without a payload - #2

Open
arekm wants to merge 1 commit into
gajim:masterfrom
arekm:fix-pep-item-without-payload
Open

fix: Don't crash on PEP items without a payload#2
arekm wants to merge 1 commit into
gajim:masterfrom
arekm:fix-pep-item-without-payload

Conversation

@arekm

@arekm arekm commented Jul 28, 2026

Copy link
Copy Markdown

getTag() returns None when the payload element is missing, which some clients send instead of retracting the item. Tune, Mood, Activity and Location all dereferenced the result directly, so the handler chain aborted with an AttributeError.

Traceback (most recent call last):
  File "nbxmpp/dispatcher.py", line 756, in _execute_handler_chain
  File "nbxmpp/modules/tune.py", line 58, in _process_pubsub_tune
AttributeError: 'NoneType' object has no attribute 'getChildren'

getTag() returns None when the payload element is missing, which some clients
send instead of retracting the item. Tune, Mood, Activity and Location all
dereferenced the result directly, so the handler chain aborted with an
AttributeError.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant