summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server
diff options
context:
space:
mode:
authorIrfan Sheriff <isheriff@google.com>2010-05-26 21:34:52 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-05-26 21:34:52 -0700
commit8316e875baee53b661d5af8fa843d97e51acbcf6 (patch)
tree042dbf082861b305faf8d68143cb404a47d8a6cc /services/java/com/android/server
parentf69fd4dd481c10749a8651ab6c9cfda1dea68297 (diff)
parentb3f3caef38326be2b4aea309237f718e6e2d2b8a (diff)
downloadframeworks_base-8316e875baee53b661d5af8fa843d97e51acbcf6.zip
frameworks_base-8316e875baee53b661d5af8fa843d97e51acbcf6.tar.gz
frameworks_base-8316e875baee53b661d5af8fa843d97e51acbcf6.tar.bz2
am b3f3caef: Merge "Fix null pointer exception" into froyo
Merge commit 'b3f3caef38326be2b4aea309237f718e6e2d2b8a' into froyo-plus-aosp * commit 'b3f3caef38326be2b4aea309237f718e6e2d2b8a': Fix null pointer exception
Diffstat (limited to 'services/java/com/android/server')
-rw-r--r--services/java/com/android/server/NetworkManagementService.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/services/java/com/android/server/NetworkManagementService.java b/services/java/com/android/server/NetworkManagementService.java
index 5e0439c..cbbc7be 100644
--- a/services/java/com/android/server/NetworkManagementService.java
+++ b/services/java/com/android/server/NetworkManagementService.java
@@ -504,8 +504,11 @@ class NetworkManagementService extends INetworkManagementService.Stub {
}
private String convertQuotedString(String s) {
- /* Replace \ with \\, then " with \" and add quotes at end */
- return '"' + s.replaceAll("\\\\","\\\\\\\\").replaceAll("\"","\\\\\"") + '"';
+ if (s == null) {
+ return s;
+ }
+ /* Replace \ with \\, then " with \" and add quotes at end */
+ return '"' + s.replaceAll("\\\\","\\\\\\\\").replaceAll("\"","\\\\\"") + '"';
}
public void stopAccessPoint() throws IllegalStateException {