am 2ed40379: am 8316e875: am b3f3caef: Merge "Fix null pointer exception" into froyo

This commit is contained in:
Irfan Sheriff
2010-05-26 21:39:39 -07:00
committed by Android Git Automerger

View File

@@ -504,6 +504,9 @@ class NetworkManagementService extends INetworkManagementService.Stub {
} }
private String convertQuotedString(String s) { private String convertQuotedString(String s) {
if (s == null) {
return s;
}
/* Replace \ with \\, then " with \" and add quotes at end */ /* Replace \ with \\, then " with \" and add quotes at end */
return '"' + s.replaceAll("\\\\","\\\\\\\\").replaceAll("\"","\\\\\"") + '"'; return '"' + s.replaceAll("\\\\","\\\\\\\\").replaceAll("\"","\\\\\"") + '"';
} }