diff options
author | v-krishna.rao <v-krishna.rao@oneplus.com> | 2020-07-29 05:56:20 -0400 |
---|---|---|
committer | David Su <dysu@google.com> | 2020-08-04 21:09:40 +0000 |
commit | 9ff9b719bb3d016aa9f7be505170eea1e21bc74a (patch) | |
tree | d09e15cef765d2275424daa78a4af435e76effec | |
parent | ece9f2221fcb68c1f18ab78966e7eb8f5049dfdd (diff) |
Fix crash while calling getVendorInterface method observed during aging tests
IllegalArgumentException is possibly caused by issues in HIDL
(HwRemoteBinder), catch this exception to prevent crashing.
Bug: 162705230
Test: atest FrameworksWifiTests
Change-Id: I06fe85a4083db4dd9a8ce3a028e6d43646013673
-rw-r--r-- | service/java/com/android/server/wifi/p2p/SupplicantP2pIfaceHal.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service/java/com/android/server/wifi/p2p/SupplicantP2pIfaceHal.java b/service/java/com/android/server/wifi/p2p/SupplicantP2pIfaceHal.java index 2d0886188..3d15ec647 100644 --- a/service/java/com/android/server/wifi/p2p/SupplicantP2pIfaceHal.java +++ b/service/java/com/android/server/wifi/p2p/SupplicantP2pIfaceHal.java @@ -307,7 +307,7 @@ public class SupplicantP2pIfaceHal { } supplicantIface.setResult(status, iface); }); - } catch (RemoteException e) { + } catch (RemoteException | IllegalArgumentException e) { Log.e(TAG, "ISupplicant.getInterface exception: " + e); supplicantServiceDiedHandler(); return null; |