You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2024/11/20 15:14:09 UTC

[Bug 69464] Duplicate entries caused by empty entries in the middle of the directory

https://bz.apache.org/bugzilla/show_bug.cgi?id=69464

--- Comment #1 from Emmanuel Bourg <eb...@apache.org> ---
I've pushed a fix on GitHub:
https://github.com/ebourg/poi/commits/empty-properties/

- Empty entries are no longer handled as a null value but as an instance of the
new EmptyProperty class
- When a property is added, the first EmptyProperty from the PropertyTable is
replaced, otherwise the property is appended to the list
- When writing the property table, the list is compacted such that blocks
consisting of only empty properties are removed

There are no tests yet but, at least it doesn't break any existing tests.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org