Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From 5d37f696457477a54a893931b1ade9ef000f9958 Mon Sep 17 00:00:00 2001
- From: c_rrajiv <rrajiv@codeaurora.org>
- Date: Fri, 30 Sep 2016 11:12:34 +0530
- Subject: [PATCH] Fix Crash for wifiP2pService when verbose log enabled
- When verbose logging is enabled and we try to connect to
- any accesspoint, dump function has a missing check for
- args parameter. This commit ensures the same.
- Change-Id: I1cfa868151f31d78ca60bc9b3e68b81c86b304c0
- CRs-Fixed: 1073017
- ---
- service/java/com/android/server/wifi/WifiMetrics.java | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
- diff --git a/service/java/com/android/server/wifi/WifiMetrics.java b/service/java/com/android/server/wifi/WifiMetrics.java
- index cc6fe000..855afa7e 100644
- --- a/service/java/com/android/server/wifi/WifiMetrics.java
- +++ b/service/java/com/android/server/wifi/WifiMetrics.java
- @@ -802,7 +802,7 @@ public class WifiMetrics {
- public void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
- synchronized (mLock) {
- pw.println("WifiMetrics:");
- - if (args.length > 0 && PROTO_DUMP_ARG.equals(args[0])) {
- + if ((args != null) && args.length > 0 && PROTO_DUMP_ARG.equals(args[0])) {
- //Dump serialized WifiLog proto
- consolidateProto(true);
- for (ConnectionEvent event : mConnectionEventList) {
- --
- 2.12.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement