commit | 9c0c523c26ef648d3da954cd985415e6b62b1549 | [log] [tgz] |
---|---|---|
author | keparal.li <keparal.li@mediatek.com> | Fri Jul 01 15:11:50 2022 +0800 |
committer | Lili Lin <lili.lin@mediatek.com> | Fri Jul 15 16:01:10 2022 +0800 |
tree | b1368be8e476ba2cc8c6af7d94a9b52d5ffca7f9 | |
parent | 79b38b491c6b4302e64a5160325a54302a6b4850 [diff] |
Catch ServiceSpecificException while fetching tethering stats from Netd Netd#tethergetStats may throw exception sometimes. Need catch runtime exception to avoid JE Bug: 238033613 Change-Id: I3db60c2acd1413cf679700e25a8a4c20121f9e5d
diff --git a/service-t/src/com/android/server/net/NetworkStatsService.java b/service-t/src/com/android/server/net/NetworkStatsService.java index 82b1fb5..f9fe0b7 100644 --- a/service-t/src/com/android/server/net/NetworkStatsService.java +++ b/service-t/src/com/android/server/net/NetworkStatsService.java
@@ -2236,7 +2236,7 @@ throw new IllegalStateException("invalid tethering stats " + e); } } - } catch (IllegalStateException e) { + } catch (IllegalStateException | ServiceSpecificException e) { Log.wtf(TAG, "problem reading network stats", e); } return stats;