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

Commit 7baec0fe authored by Irfan Sheriff's avatar Irfan Sheriff
Browse files

Fix null pointer exception

Bug: 2718857
Change-Id: I4b04284fd5b3a4881297fe15555e9f1ca91d73cb
parent fa499e46
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -504,6 +504,9 @@ class NetworkManagementService extends INetworkManagementService.Stub {
    }

    private String convertQuotedString(String s) {
        if (s == null) {
            return s;
        }
        /* Replace \ with \\, then " with \" and add quotes at end */
        return '"' + s.replaceAll("\\\\","\\\\\\\\").replaceAll("\"","\\\\\"") + '"';
    }