Skip to content

Commit fa7604b

Browse files
authored
Merge branch '7.x.x' into rz/chore/cherry-pick-4185
2 parents fd4760c + b14c7bf commit fa7604b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

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

77
- Session Replay: Fix crash when a navigation breadcrumb does not have "to" destination ([#4185](https://github.com/getsentry/sentry-java/pull/4185))
88
- Session Replay: Cap video segment duration to maximum 5 minutes to prevent endless video encoding in background ([#4185](https://github.com/getsentry/sentry-java/pull/4185))
9+
- Avoid logging an error when a float is passed in the manifest ([#4266](https://github.com/getsentry/sentry-java/pull/4266))
910

1011
## 7.22.3
1112

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,10 @@ private static boolean readBool(
494494
private static @NotNull Double readDouble(
495495
final @NotNull Bundle metadata, final @NotNull ILogger logger, final @NotNull String key) {
496496
// manifest meta-data only reads float
497-
final Double value = ((Number) metadata.getFloat(key, metadata.getInt(key, -1))).doubleValue();
497+
double value = ((Float) metadata.getFloat(key, -1)).doubleValue();
498+
if (value == -1) {
499+
value = ((Integer) metadata.getInt(key, -1)).doubleValue();
500+
}
498501
logger.log(SentryLevel.DEBUG, key + " read: " + value);
499502
return value;
500503
}

0 commit comments

Comments
 (0)