Skip to content

Undefined array key error in PropertyStore.php  #26

@S-R0

Description

@S-R0

Getting an error in hfig/mapi/src/MAPI/Property/PropertyStore.php on line 155.

Screenshot 2021-06-03 at 11 01 21

A simple fix for now is to add a try/catch to the parseNameId function, and just skip any iterations of the foreach (str_split($propsData, 8) as $idx => $rawProp) loop that are throwing that error.

From a real use case scenario, I would much rather that any that are broken are just ignored and skipped, but the function still processes the message rather than ignoring it.

php - 8.0
hfip/mapi - 1.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions