Skip to content

Commit 4be3592

Browse files
committed
Null handling on Android side
1 parent 5039523 commit 4be3592

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/flutter/lib/src/native/java/sentry_native_java.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,8 @@ class SentryNativeJava extends SentryNativeChannel {
340340

341341
@override
342342
void setExtra(String key, dynamic value) => tryCatchSync('setExtra', () {
343+
if (value == null) return;
344+
343345
native.Sentry.configureScope(
344346
native.ScopeCallback.implement(
345347
native.$ScopeCallback(

0 commit comments

Comments
 (0)