File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
android/src/main/java/io/sentry Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -166,10 +166,12 @@ public void captureBreadcrumb(ReadableMap breadcrumb) {
166166 if (breadcrumb .hasKey ("category" )) {
167167 breadcrumbBuilder .setCategory (breadcrumb .getString ("category" ));
168168 }
169- if (breadcrumb .hasKey ("data" )) {
169+ if (breadcrumb .hasKey ("data" ) && breadcrumb . getMap ( "data" ) != null ) {
170170 Map <String , String > newData = new HashMap <>();
171171 for (Map .Entry <String , Object > data : breadcrumb .getMap ("data" ).toHashMap ().entrySet ()) {
172- newData .put (data .getKey (), data .getValue ().toString ());
172+ if (data .getValue () != null ) {
173+ newData .put (data .getKey (), data .getValue ().toString ());
174+ }
173175 }
174176 breadcrumbBuilder .setData (newData );
175177 }
You can’t perform that action at this time.
0 commit comments