FormNodeProvider throw NoSuchElementException

In Smack 4.4.1 when a node is queried for the options, without having the proper authorization an error is returned (by OF 4.6.1) with an empty options element:

This results in a NoSuchElementException in the FormNodeProvider.

Solution: rewrite the one-liner and check if the content has actually a next value.

You can make my life easier if you provide some references to the code in question and even more easier if you provide the involved stanzas. Provided patches are also always a great way to discuss proposed changes. Thanks.

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.