Skip to content

Commit 9bf5f3b

Browse files
committed
Add cast to ReadableNativeMap for toHashMap function
1 parent 29c6b09 commit 9bf5f3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public void captureBreadcrumb(ReadableMap breadcrumb) {
168168
}
169169
if (breadcrumb.hasKey("data") && breadcrumb.getMap("data") != null) {
170170
Map<String, String> newData = new HashMap<>();
171-
for (Map.Entry<String, Object> data : breadcrumb.getMap("data").toHashMap().entrySet()) {
171+
for (Map.Entry<String, Object> data : ((ReadableNativeMap)breadcrumb.getMap("data")).toHashMap().entrySet()) {
172172
newData.put(data.getKey(), data.getValue() != null ? data.getValue().toString() : null);
173173
}
174174
breadcrumbBuilder.setData(newData);

0 commit comments

Comments
 (0)