Skip to content

Commit af61ea3

Browse files
authored
Merge 61539fe into fc84053
2 parents fc84053 + 61539fe commit af61ea3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### Fixes
66

7+
- Avoid ArrayIndexOutOfBoundsException on Android cpu data collection ([#3598](https://github.com/getsentry/sentry-java/pull/3598))
78
- Check app start spans time and ignore background app starts ([#3550](https://github.com/getsentry/sentry-java/pull/3550))
89
- This should eliminate long-lasting App Start transactions
910

sentry-android-core/src/main/java/io/sentry/android/core/AndroidCpuCollector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ private long readTotalCpuNanos() {
115115
// Amount of clock ticks this process' waited-for children has been scheduled in kernel mode
116116
long csTime = Long.parseLong(stats[16]);
117117
return (long) ((uTime + sTime + cuTime + csTime) * nanosecondsPerClockTick);
118-
} catch (NumberFormatException e) {
118+
} catch (NumberFormatException | ArrayIndexOutOfBoundsException e) {
119119
logger.log(SentryLevel.ERROR, "Error parsing /proc/self/stat file.", e);
120120
return 0;
121121
}

0 commit comments

Comments
 (0)