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

Commit e482baee authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "AppOps: Add null pointer check for USERAGENT parameter."

parents e4bee7c5 6e05d113
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -254,6 +254,11 @@ public final class AndroidHttpClient implements HttpClient {

    private boolean isMmsRequest()
    {
        if(delegate.getParams() == null ||
                delegate.getParams().getParameter(CoreProtocolPNames.USER_AGENT) == null) {
            return false;
        }

        if(delegate.getParams().getParameter(CoreProtocolPNames.USER_AGENT).toString().contains("Android-Mms"))
            return true;