guard against null url in oob stanza

Phillip Davis created

previously, would crash whole app

`if (url != null) {` makes it seem like we were
fine with the subsequent code not running anyway

Change summary

src/main/java/eu/siacs/conversations/entities/Conversation.java | 3 +++
1 file changed, 3 insertions(+)

Detailed changes

src/main/java/eu/siacs/conversations/entities/Conversation.java 🔗

@@ -3241,6 +3241,9 @@ public class Conversation extends AbstractEntity
                             String url = el.findChildContent("url", "jabber:x:oob");
                             if (url != null) {
                                 String scheme = Uri.parse(url).getScheme();
+                                if (scheme == null) {
+                                    break;
+                                }
                                 if (scheme.equals("http") || scheme.equals("https")) {
                                     this.responseElement = el;
                                     break;