Failed command execution leads to error in AdHoc commands window
Versions
- OS: Manjaro Linux
- GTK+ Version: 3.24.8
- PyGObject Version: 3.32.1
- GLib Version : 2.60.0
- python-nbxmpp Version: 0.9.91
- Gajim Version: 1.1.92
Traceback
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/gajim/gtk/adhoc.py", line 157, in _execute_action
command = self.get_nth_page(current_page).get_selected_command()
File "/usr/lib/python3.7/site-packages/gajim/gtk/adhoc.py", line 300, in get_selected_command
key = model[treeiter][1]
File "/usr/lib/python3.7/site-packages/gi/overrides/Gtk.py", line 842, in __getitem__
aiter = self._getiter(key)
File "/usr/lib/python3.7/site-packages/gi/overrides/Gtk.py", line 830, in _getiter
aiter = self.get_iter(key)
File "/usr/lib/python3.7/site-packages/gi/overrides/Gtk.py", line 864, in get_iter
path = self._coerce_path(path)
File "/usr/lib/python3.7/site-packages/gi/overrides/Gtk.py", line 839, in _coerce_path
return TreePath(path)
File "/usr/lib/python3.7/site-packages/gi/overrides/Gtk.py", line 1199, in __new__
path = ":".join(str(val) for val in path)
TypeError: 'NoneType' object is not iterable
Steps to reproduce the problem
Browse commands on a MUC component with a Prosody server.
Execution failed > Click 'Commands', see empty commands window, click 'Execute' (which should not be clickable, I guess) > traceback.
Relevant xml (browsing)
<!-- Outgoing Do 16 Mai 2019 15:01:59 CEST -->
<iq xmlns="jabber:client" to="conference.server.net" type="get" id="d4e28b4f-ef65-4098-aa18-871989f84e73" from="daniel@server.net/gajim.729Z2SWK">
<query xmlns="http://jabber.org/protocol/disco#items" node="http://jabber.org/protocol/commands" />
</iq>
<!-- Outgoing Do 16 Mai 2019 15:01:59 CEST -->
<r xmlns="urn:xmpp:sm:3" />
<!-- Incoming Do 16 Mai 2019 15:02:00 CEST -->
<iq xmlns="jabber:client" id="d4e28b4f-ef65-4098-aa18-871989f84e73" type="result" to="daniel@server.net/gajim.729Z2SWK" from="conference.server.net">
<query xmlns="http://jabber.org/protocol/disco#items" node="http://jabber.org/protocol/commands" />
</iq>
<!-- Incoming Do 16 Mai 2019 15:02:00 CEST -->
<r xmlns="urn:xmpp:sm:3" />
<!-- Outgoing Do 16 Mai 2019 15:02:00 CEST -->
<a xmlns="urn:xmpp:sm:3" h="4575" />
<!-- Incoming Do 16 Mai 2019 15:02:00 CEST -->
<a xmlns="urn:xmpp:sm:3" h="119" />