Skip to content

Commit

Permalink
add null check
Browse files Browse the repository at this point in the history
  • Loading branch information
MikhailSuendukov committed Aug 17, 2023
1 parent 2ac5300 commit deb6639
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -657,8 +657,10 @@ public void run() {
mChannel.enqueue(errorLog, ERROR_GROUP, Flags.DEFAULTS);

/* Then attachments if any. */
for (ErrorAttachmentLog attachment : attachments) {
attachment.setDataResidencyRegion(dataResidencyRegion);
if (attachments != null) {
for (ErrorAttachmentLog attachment : attachments) {
attachment.setDataResidencyRegion(dataResidencyRegion);
}
}
sendErrorAttachment(errorId, attachments);
}
Expand Down

0 comments on commit deb6639

Please sign in to comment.