From: Sergey Vladimirov Date: Fri, 8 Jul 2011 15:41:40 +0000 (+0000) Subject: additional check and workaround for wrong order (fix TestWordExtractorBugs.testBug50688) X-Git-Tag: REL_3_8_BETA4~250 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a26777942b761d43e4372fecca77cd4eba0d2aff;p=poi.git additional check and workaround for wrong order (fix TestWordExtractorBugs.testBug50688) git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1144361 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/FieldsTables.java b/src/scratchpad/src/org/apache/poi/hwpf/model/FieldsTables.java index b6812f550f..3af6e0adec 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/model/FieldsTables.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/FieldsTables.java @@ -182,6 +182,13 @@ public class FieldsTables GenericPropertyNode endNode = nodes[endNodePositionInArray]; PlexOfField endPlexOfField = new PlexOfField( endNode ); + if ( endPlexOfField.getFld().getBoundaryType() != FieldDescriptor.FIELD_END_MARK ) + { + /* Not and ending mark */ + next++; + continue; + } + Field field = new Field( startPlexOfField, separatorPlexOfField, endPlexOfField ); result.add( field );