Skip to content

Commit c2c2c58

Browse files
committed
fix(android): set empty message to prevent breadcrumb exception
1 parent cbf1e41 commit c2c2c58

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v0.38.1
4+
5+
- [Android] set empty message to prevent breadcrumb exception
6+
37
## v0.38.0
48

59
- [Android] Remove requirement to pass in `MainApplication` `new RNSentryPackage(MainApplication.this)`

android/src/main/java/io/sentry/RNSentryModule.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ public void captureBreadcrumb(ReadableMap breadcrumb) {
205205

206206
if (breadcrumb.hasKey("message")) {
207207
breadcrumbBuilder.setMessage(breadcrumb.getString("message"));
208+
} else {
209+
breadcrumbBuilder.setMessage("");
208210
}
209211
Sentry.record(breadcrumbBuilder.build());
210212
}

0 commit comments

Comments
 (0)