Skip to content

Commit

Permalink
[Defender Endpoint] fix null ref for description description (elastic…
Browse files Browse the repository at this point in the history
…#12369)

There can be events without a description, which leads the if condition to fail with:
cannot access method/field [length] from a null def reference
  • Loading branch information
SimonKoetting authored Jan 20, 2025
1 parent cbfba9e commit a4e7582
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions packages/microsoft_defender_endpoint/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "2.27.1"
changes:
- description: Fix null reference for description field.
type: bugfix
link: https://github.com/elastic/integrations/pull/12369
- version: "2.27.0"
changes:
- description: Do not remove `event.original` in main ingest pipeline.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ processors:
field: json.description
target_field: rule.description
ignore_missing: true
if: (ctx.json?.description).length() < 1020
if: ctx.json?.description != null && ctx.json.description.length() < 1020

######################
## ECS File Mapping ##
Expand Down
2 changes: 1 addition & 1 deletion packages/microsoft_defender_endpoint/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: "3.0.2"
name: microsoft_defender_endpoint
title: Microsoft Defender for Endpoint
version: "2.27.0"
version: "2.27.1"
description: Collect logs from Microsoft Defender for Endpoint with Elastic Agent.
categories:
- "security"
Expand Down

0 comments on commit a4e7582

Please sign in to comment.