Skip to content

Commit 67e4347

Browse files
committed
tests for Android profiling (#1949)
1 parent 1d5680f commit 67e4347

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

sentry/src/main/java/io/sentry/SentryClient.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,9 @@ private boolean shouldApplyScopeData(
187187
final SentryEnvelopeItem profilingTraceItem =
188188
SentryEnvelopeItem.fromProfilingTrace(
189189
profilingTraceData, options.getMaxTraceFileSize(), options.getSerializer());
190-
envelopeItems.add(profilingTraceItem);
190+
if (profilingTraceItem != null) {
191+
envelopeItems.add(profilingTraceItem);
192+
}
191193
}
192194

193195
if (attachments != null) {

0 commit comments

Comments
 (0)