We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a1ddefc + 54a7bd5 commit de0a8b4Copy full SHA for de0a8b4
android/src/main/java/io/sentry/RNSentryModule.java
@@ -169,9 +169,7 @@ public void captureBreadcrumb(ReadableMap breadcrumb) {
169
if (breadcrumb.hasKey("data") && breadcrumb.getMap("data") != null) {
170
Map<String, String> newData = new HashMap<>();
171
for (Map.Entry<String, Object> data : breadcrumb.getMap("data").toHashMap().entrySet()) {
172
- if (data.getValue() != null) {
173
- newData.put(data.getKey(), data.getValue().toString());
174
- }
+ newData.put(data.getKey(), data.getValue() != null ? data.getValue().toString() : null);
175
}
176
breadcrumbBuilder.setData(newData);
177
0 commit comments