at line 304:
- Code: Select all
FieldRef nested = (FieldRef)o;
log.error("Nested field " + nested.getFldName() );
at that stage the "o" object is the same as the "nested" one, quite easy to fix...
Here is the XML structure generating the problem:
- Code: Select all
<w:r>
<w:fldChar w:fldCharType="begin"/>
</w:r>
<w:r>
<w:instrText xml:space="preserve"> TC </w:instrText>
</w:r>
<w:r>
<w:fldChar w:fldCharType="begin"/>
</w:r>
<w:r>
<w:instrText xml:space="preserve"> MergeField TATP_Ques \* MERGEFORMAT </w:instrText>
</w:r>
<w:r>
<w:fldChar w:fldCharType="separate"/>
</w:r>
<w:r>
<w:instrText>«TATP_Ques»</w:instrText>
</w:r>
<w:r>
<w:fldChar w:fldCharType="end"/>
</w:r>
<w:r>
<w:instrText xml:space="preserve"> \l 3</w:instrText>
</w:r>
<w:r>
<w:fldChar w:fldCharType="end"/>
</w:r>
<w:r>
<w:fldChar w:fldCharType="begin"/>
</w:r>
<w:r>
<w:instrText xml:space="preserve"> MergeField TATP_Ques \* MERGEFORMAT </w:instrText>
</w:r>
<w:r>
<w:fldChar w:fldCharType="separate"/>
</w:r>
<w:r>
<w:t>«TATP_Ques»</w:t>
</w:r>
<w:r>
<w:fldChar w:fldCharType="end"/>
</w:r>