Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c0cdfa59 authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Fix NPE.

Change-Id: Iea1faf4b3070ed29884e133e3bab54401bd77bcf
parent 47669522
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -68,11 +68,13 @@ public class AssistContent {
        setWebUri(null);
        if (intent != null && Intent.ACTION_VIEW.equals(intent.getAction())) {
            Uri uri = intent.getData();
            if (uri != null) {
                if ("http".equals(uri.getScheme()) || "https".equals(uri.getScheme())) {
                    setWebUri(uri);
                }
            }
        }
    }

    /**
     * Sets the Intent associated with the content, describing the current top-level context of