Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: duplicate Java.Lang.RuntimeException on Android
  • Loading branch information
jpnurmi committed Sep 10, 2025
commit d72ae5d1650f1c50334252ab9d8ef8c3afee128f
3 changes: 3 additions & 0 deletions src/Sentry/Platforms/Android/SentrySdk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ private static void InitSentryAndroidSdk(SentryOptions options)
SentryAndroid.Init(AppContext, configuration);
}

// Don't capture Java Runtime exceptions in the managed SDK, since we already capture them in the native SDK
options.AddExceptionFilterForType<Java.Lang.RuntimeException>();

// Set options for the managed SDK that depend on the Android SDK. (The user will not be able to modify these.)
options.AddEventProcessor(new AndroidEventProcessor(nativeOptions!));
if (options.Android.LogCatIntegration != LogCatIntegrationType.None)
Expand Down
Loading