We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6071ec commit d25e185Copy full SHA for d25e185
src/Sentry/Platforms/Android/Extensions/SentryEventExtensions.cs
@@ -17,6 +17,11 @@ internal static class SentryEventExtensions
17
18
public static SentryEvent ToSentryEvent(this JavaSdk.SentryEvent sentryEvent, JavaSdk.SentryOptions javaOptions)
19
{
20
+ if (sentryEvent?.User != null)
21
+ {
22
+ // when we cast this serialize this over, this value must be set
23
+ sentryEvent.User.Name ??= String.Empty;
24
+ }
25
using var stream = new MemoryStream();
26
using var streamWriter = new JavaOutputStreamWriter(stream);
27
using var jsonWriter = new JavaSdk.JsonObjectWriter(streamWriter, javaOptions.MaxDepth);
0 commit comments