centic9-dt commented on issue #1013:
URL: https://github.com/apache/poi/issues/1013#issuecomment-3920734095

   When running the following:
   
   ```
           try (XWPFDocument sampleDoc = 
XWPFTestDataSamples.openSampleDocument("saut_page.docx")) {
               for (XWPFParagraph paragraph : sampleDoc.getParagraphs()) {
                   for (XWPFRun run : paragraph.getRuns()) {
                       final CTBr[] brArray = run.getCTR().getBrArray();
                       if (brArray == null) {
                           System.out.println("Having no br-array");
                       } else {
                           for (CTBr ctBr : brArray) {
                               System.out.println("Having ctBr: " + 
ctBr.getType());
                           }
                       }
                   }
               }
           }
   ```
   
   I get 
   
   ```
   Having ctBr: page
   Having ctBr: null
   Having ctBr: page
   ```
   
   So getBrArray() is always available for me and CtBr.getType() returns "Page" 
for some of them.
   
   Please check your code.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to