diff --git a/android/src/main/java/io/sentry/RNSentryModule.java b/android/src/main/java/io/sentry/RNSentryModule.java index df124ee805..2aa66489cf 100644 --- a/android/src/main/java/io/sentry/RNSentryModule.java +++ b/android/src/main/java/io/sentry/RNSentryModule.java @@ -241,7 +241,8 @@ public void captureEvent(ReadableMap event) { if (castEvent.hasKey("tags")) { for (Map.Entry entry : castEvent.getMap("tags").toHashMap().entrySet()) { - eventBuilder.withTag(entry.getKey(), entry.getValue().toString()); + String tagValue = entry.getValue() != null ? entry.getValue().toString() : "INVALID_TAG"; + eventBuilder.withTag(entry.getKey(), tagValue); } }