Skip to content

fix: Add null check to avoid trim(null)#18

Open
amulet1 wants to merge 1 commit into
FRAMEWORK_6_0from
fix_parseaddresslist2
Open

fix: Add null check to avoid trim(null)#18
amulet1 wants to merge 1 commit into
FRAMEWORK_6_0from
fix_parseaddresslist2

Conversation

@amulet1
Copy link
Copy Markdown
Member

@amulet1 amulet1 commented May 12, 2026

The #16 accidentally broke things, but its original intention was to address case with $address = null, which can be easily triggered, e.g. by creating a contact in Turba without email address.

This is a corrected fix.

Alternatively, we could add if ($address !== null) {...} around existing code.

@amulet1 amulet1 requested review from TDannhauer and ralflang May 12, 2026 20:21
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.

1 participant