Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -506,16 +506,12 @@ static void setAppPackageInfo(
app.setPermissions(permissions);

if (deviceInfoUtil != null) {
try {
final ContextUtils.SplitApksInfo splitApksInfo = deviceInfoUtil.getSplitApksInfo();
if (splitApksInfo != null) {
app.setSplitApks(splitApksInfo.isSplitApks());
if (splitApksInfo.getSplitNames() != null) {
app.setSplitNames(Arrays.asList(splitApksInfo.getSplitNames()));
}
final ContextUtils.SplitApksInfo splitApksInfo = deviceInfoUtil.getSplitApksInfo();
if (splitApksInfo != null) {
app.setSplitApks(splitApksInfo.isSplitApks());
if (splitApksInfo.getSplitNames() != null) {
app.setSplitNames(Arrays.asList(splitApksInfo.getSplitNames()));
}
} catch (Throwable e) {
// Split APK info is optional, the app context is still complete without it.
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,8 @@ public void recordLostEnvelope(@NotNull DiscardReason reason, @Nullable SentryEn
return;
}

try {
for (final SentryEnvelopeItem item : envelope.getItems()) {
recordLostEnvelopeItem(reason, item);
}
} catch (Throwable e) {
options.getLogger().log(SentryLevel.ERROR, e, "Unable to record lost envelope.");
for (final SentryEnvelopeItem item : envelope.getItems()) {
recordLostEnvelopeItem(reason, item);
}
}

Expand Down Expand Up @@ -137,12 +133,8 @@ public void recordLostEvent(@NotNull DiscardReason reason, @NotNull DataCategory
@Override
public void recordLostEvent(
@NotNull DiscardReason reason, @NotNull DataCategory category, long count) {
try {
recordLostEventInternal(reason.getReason(), category.getCategory(), count);
executeOnDiscard(reason, category, count);
} catch (Throwable e) {
options.getLogger().log(SentryLevel.ERROR, e, "Unable to record lost event.");
}
recordLostEventInternal(reason.getReason(), category.getCategory(), count);
executeOnDiscard(reason, category, count);
}

private void executeOnDiscard(
Expand Down
Loading