Skip to content

Commit b3f3cae

Browse files
isheriffAndroid (Google) Code Review
authored andcommitted
Merge "Fix null pointer exception" into froyo
2 parents 4273ce1 + 7baec0f commit b3f3cae

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

services/java/com/android/server/NetworkManagementService.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,8 +504,11 @@ public void startAccessPoint(WifiConfiguration wifiConfig, String wlanIface, Str
504504
}
505505

506506
private String convertQuotedString(String s) {
507-
/* Replace \ with \\, then " with \" and add quotes at end */
508-
return '"' + s.replaceAll("\\\\","\\\\\\\\").replaceAll("\"","\\\\\"") + '"';
507+
if (s == null) {
508+
return s;
509+
}
510+
/* Replace \ with \\, then " with \" and add quotes at end */
511+
return '"' + s.replaceAll("\\\\","\\\\\\\\").replaceAll("\"","\\\\\"") + '"';
509512
}
510513

511514
public void stopAccessPoint() throws IllegalStateException {

0 commit comments

Comments
 (0)