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

Commit d71809bb authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Sanity check to avoice NPE if an app-provided URI is invalid."

parents 15c3e602 98f4c694
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1309,6 +1309,11 @@ public class AssistStructure implements Parcelable {
            if (domain == null) return;

            final Uri uri = Uri.parse(domain);
            if (uri == null) {
                // Cannot log domain because it could contain PII;
                Log.w(TAG, "Failed to parse web domain");
                return;
            }
            mWebScheme = uri.getScheme();
            mWebDomain = uri.getHost();
        }