Skip to content

[IDEV-2644] fix: guard against null fields in CheckPivotableDomains to prevent Nonetype iteration error - #40

Merged
briluza merged 2 commits into
domaintools-iris-v2.2.13from
IDEV-2644
Sep 16, 2026
Merged

briluza merged 2 commits into
domaintools-iris-v2.2.13from
IDEV-2644

Conversation

@briluza

@briluza briluza commented Sep 16, 2026

Copy link
Copy Markdown

Contributing to Cortex XSOAR Content

Make sure to register your contribution by filling the contribution registration form

The Pull Request will be reviewed only after the contribution registration form is filled.

Status

  • In Progress
  • Ready
  • In Hold - (Reason for hold)

Related Issues

Fixes IDEV-2644

Description

Fixed a bug in the CheckPivotableDomains script where null values in domain data fields (e.g. SSLCertificate, MailServers, IPAddresses, NameServers, SOAEmail, GoogleAdsenseTrackingCode) caused a 'NoneType' object is not iterable crash. Added or [] / or {} fallback guards at all 12 affected call sites in check_pivotable_domains, matching the existing guard pattern already used in check_pivotable_nameserver_host_or_domain. Added a test case covering the null fields scenario.

Must have

  • Tests
  • Documentation

@briluza
briluza changed the base branch from domaintools-iris-v2.2.13 to domaintools-iris-v2.2.12 September 16, 2026 14:12
@briluza
briluza changed the base branch from domaintools-iris-v2.2.12 to domaintools-iris-v2.2.13 September 16, 2026 14:12

@jbabac jbabac left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job!

@briluza
briluza merged commit f3b7dd4 into domaintools-iris-v2.2.13 Sep 16, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants