Advertisement
Guest User

Untitled

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