[GitHub] poi pull request #82: org.apache.poi.xwpf.converter.core.XWPFConverterExcept...

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[GitHub] poi pull request #82: org.apache.poi.xwpf.converter.core.XWPFConverterExcept...

tuean
GitHub user tuean opened a pull request:

    https://github.com/apache/poi/pull/82

    org.apache.poi.xwpf.converter.core.XWPFConverterException: java.lang.NullPointerException  

    version : 3.15.
    I try to remove all tableRows by using XWPFTable  table.removeRow();
    And then, in  computeColWidths of class XWPFTableUtil,
    Param firstRow(Line 66) was returnd by getFirstRow() and the value was null,
    so when the code runs to line 97 and step into getNbColumnsToIgnore(firstRow, true),
    it will throw NullPointerException
    Beg for someone who knows these apis well and fix this problem,thx!


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/apache/poi trunk

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/poi/pull/82.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #82
   
----
commit d4c9e0206ab971bf2018227e139536aa442eb34f
Author: PJ Fanning <[hidden email]>
Date:   2017-07-17T11:36:32Z

    fix tests broken by <br/> doc changes
   
    git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1802131 13f79535-47bb-0310-9956-ffa450edef68

commit 2a2ef074a47a4ae0b45989390c9531248c6766f1
Author: Dominik Stadler <[hidden email]>
Date:   2017-07-19T19:02:53Z

    Exclude some more nodes for OpenJDK build
   
    git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1802425 13f79535-47bb-0310-9956-ffa450edef68

commit db1b62efe7cb80ac2f4e5b13778db49625b405b9
Author: Dominik Stadler <[hidden email]>
Date:   2017-07-21T18:19:03Z

    Fix some IntelliJ warnings
   
    git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1802629 13f79535-47bb-0310-9956-ffa450edef68

commit c76672b8aa8459cf39260c2175a7413e8cb0cc22
Author: Dominik Stadler <[hidden email]>
Date:   2017-07-21T18:19:11Z

    ExtractorFactory: Try to close resources also on Errors to avoid keeping files open too long
   
    git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1802630 13f79535-47bb-0310-9956-ffa450edef68

commit ef99b6c6fd022aa7dc6ffb972620f26011bd08ab
Author: Dominik Stadler <[hidden email]>
Date:   2017-07-21T18:19:17Z

    Add note that japicmp cannot be upgrade until Gradle 4 is used
   
    git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1802631 13f79535-47bb-0310-9956-ffa450edef68

commit f28bbb750c6b4b282ae09405a8284f8de880b59d
Author: Dominik Stadler <[hidden email]>
Date:   2017-07-21T18:19:22Z

    Adjust TestFonts for my version of Ubuntu
   
    git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1802632 13f79535-47bb-0310-9956-ffa450edef68

commit 8a95a71a489388276dae39eb11d40f4c135d9275
Author: Dominik Stadler <[hidden email]>
Date:   2017-07-21T18:19:29Z

    My version of Java 6 chokes on Generics here
   
    git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1802633 13f79535-47bb-0310-9956-ffa450edef68

commit 2325cdb9e6dff1496eb6b9ed482571206cbca8dd
Author: Andreas Beeker <[hidden email]>
Date:   2017-07-23T22:45:47Z

    Bug 61331 - Font group handling / common font interface
   
    git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1802741 13f79535-47bb-0310-9956-ffa450edef68

commit 08b03d9547486280b49c9f7942de17246a58a45b
Author: Andreas Beeker <[hidden email]>
Date:   2017-07-24T05:39:33Z

    Fonts bugfix
   
    git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1802751 13f79535-47bb-0310-9956-ffa450edef68

commit cc0294d58bc7939845cd4dd7c41f52a8945d2927
Author: Dominik Stadler <[hidden email]>
Date:   2017-07-24T14:16:34Z

    Refactor test somewhat to make it easier to see what it actually verifies
    Check some more to see why it fails sometimes in CI, e.g. on node qnode1
   
    git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1802817 13f79535-47bb-0310-9956-ffa450edef68

commit 67719a8d4f72050c8da26fa0e002a08f870a030e
Author: Tim Allison <[hidden email]>
Date:   2017-07-24T19:29:29Z

    augment expected sizes in TestFonts
   
    git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1802855 13f79535-47bb-0310-9956-ffa450edef68

commit df3910135fd9c442b4e746e4b156362fd2e8d755
Author: Tim Allison <[hidden email]>
Date:   2017-07-25T01:38:35Z

    61295 -- prevent potential oom in HPSF triggered by fuzzed file
   
    git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1802879 13f79535-47bb-0310-9956-ffa450edef68

commit a07ed9e86474da98f204efadfd5b9327009a0d21
Author: Tim Allison <[hidden email]>
Date:   2017-07-25T20:26:57Z

    61338 -- avoid infinite loop triggered by fuzzed wmf file
   
    git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1802997 13f79535-47bb-0310-9956-ffa450edef68

commit d345faa0252d0db06a3c9e56e8c1ce7c9e1c777e
Author: Andreas Beeker <[hidden email]>
Date:   2017-07-25T22:42:22Z

    Bug 61182 - Invalid signature created for streamed xlsx file
    - add hashes for other linebreaks
   
    git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1803011 13f79535-47bb-0310-9956-ffa450edef68

commit 4ca2ad85b944098ccf58bbc538ad4b54936bc1bd
Author: Andreas Beeker <[hidden email]>
Date:   2017-07-26T08:13:16Z

    remove test leftover
   
    git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1803024 13f79535-47bb-0310-9956-ffa450edef68

commit 21cbf101bcab4cdb2ed8194c9a769222af7294ee
Author: Tim Allison <[hidden email]>
Date:   2017-07-26T12:46:24Z

    61346 add more sanity checks before allocating byte arrays in emf/wmf
   
    git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1803041 13f79535-47bb-0310-9956-ffa450edef68

commit 16f331054ff07d42e479edcae361ea708321d3f0
Author: Tim Allison <[hidden email]>
Date:   2017-07-26T18:43:27Z

    61337 -- try to convert assertions to exceptions.  I left in the assertions for the binary search components.
   
    git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1803092 13f79535-47bb-0310-9956-ffa450edef68

commit 9e896b17ea7ed8e2c3d4afdee8af9a98ac3142a5
Author: Greg Woolsey <[hidden email]>
Date:   2017-07-26T22:00:23Z

    Another font size variation.  I suspect it is my Windows 10 scaling factor, set to 100% instead of the Windows 10 default 125%.
   
    git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1803117 13f79535-47bb-0310-9956-ffa450edef68

commit 49a222ecbcdc27c19aef2dc5a783a473ddd5fc12
Author: Andreas Beeker <[hidden email]>
Date:   2017-07-26T22:15:27Z

    #61350 - Use unsynchronized xmlbeans
   
    git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1803120 13f79535-47bb-0310-9956-ffa450edef68

commit e1f37388fc8787cba6b88e1cf3a662225d7124b7
Author: Greg Woolsey <[hidden email]>
Date:   2017-07-26T22:19:58Z

    Fix data validation value list evaluation
   
    One of my users found that my initial implementation was lacking a core distinction - most evaluations expect a single result, and "unwrap" 2/3D ValueEval results to a single value based on the input row/column.
   
    However, data validation list formulas explicitly are expected to return a 2D ValueEval.  This worked when the formula was simple and evaluated to a single Ptg, but only returned one value when the formula was more complex, or referenced a named range defined as a complex formula.
   
    This change teaches WorkbookEvaluator about the distinction, by way of a new attribute for FormulaType.
   
    There is room for discussion over how it is implemented, but this works for me.
   
    Includes the failing workbook we had as a new unit test.
   
    While I was in FormulaType I went ahead and removed the deprecated, unused, and redundant code marked for removal in 3.17.
   
    git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1803121 13f79535-47bb-0310-9956-ffa450edef68

commit 9f28e364386e325b1379ab40efa7bfa733d17f0f
Author: PJ Fanning <[hidden email]>
Date:   2017-07-28T07:42:23Z

    [Bug-61354] fix issue with extracting text from Word docs. This closes #66
   
    git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1803250 13f79535-47bb-0310-9956-ffa450edef68

commit f9b9c0d18b447a3e5e6aef968c47ef46c82ea384
Author: Greg Woolsey <[hidden email]>
Date:   2017-07-28T18:01:36Z

    Deleting a sheet did not delete table parts and relations.  Deleting a table needs to also delete any queryTable relations and parts.
   
    Previous behavior didn't result in documents Excel complained about, but left dead entries in the ZIP structure, which made it bigger and bugged me.
   
    This change does not attempt to delete query connection definitions, as those aren't referenced as relations, and don't have a usage counter to ensure we only delete them if there are no other references.  In my samples I had query tables on multiple sheets using the same connection definition, and wanted to delete only one sheet/table but leave others.
   
    git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1803317 13f79535-47bb-0310-9956-ffa450edef68

commit 24138ef6151069ae217da69a88f0cc4e8db37593
Author: Dominik Stadler <[hidden email]>
Date:   2017-07-29T06:57:40Z

    Jenkins-DSL: Print out the exact version of java in the pre-steps
   
    git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1803357 13f79535-47bb-0310-9956-ffa450edef68

commit b3c111a283f9eee117b8edb86dd8d8d745d2087a
Author: Andreas Beeker <[hidden email]>
Date:   2017-07-29T23:08:15Z

    Add handling of alternate content elements
   
    git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1803397 13f79535-47bb-0310-9956-ffa450edef68

commit ff2bcdf62db568ccc638091f8669a9b2cc9483d6
Author: Andreas Beeker <[hidden email]>
Date:   2017-07-30T23:11:36Z

    #61363 - Unify escher shape id allocation
   
    git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1803483 13f79535-47bb-0310-9956-ffa450edef68

commit e34e2868505c52d7e89d65577858d685a8c7b173
Author: Nick Burch <[hidden email]>
Date:   2017-07-31T06:36:10Z

    Javadoc fixes
   
    git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1803488 13f79535-47bb-0310-9956-ffa450edef68

commit 27fd9e4cbb94ccbf4c6079baae9f1b4741f37eda
Author: Andreas Beeker <[hidden email]>
Date:   2017-07-31T08:42:48Z

    remove invalid javadocs
   
    git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1803493 13f79535-47bb-0310-9956-ffa450edef68

commit 97f90ca83998b22c0be7f9b1b98a29f69d7b1096
Author: Andreas Beeker <[hidden email]>
Date:   2017-07-31T12:25:23Z

    Fix further Windows JVM 6 font rendering errors - OOM and EXCEPTION_ACCESS_VIOLATION
   
    git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1803528 13f79535-47bb-0310-9956-ffa450edef68

commit 18053658ccb67ea4eb6a7e3c03ae3ff54d0c9802
Author: Andreas Beeker <[hidden email]>
Date:   2017-07-31T15:29:28Z

    Add Windows jobs
   
    git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1803543 13f79535-47bb-0310-9956-ffa450edef68

commit d24e0da38a59566fcf537c9c90dbf4d15d225c86
Author: Andreas Beeker <[hidden email]>
Date:   2017-07-31T18:21:48Z

    Job DSL fix windows call / retrieve findbugs via powershell
   
    git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1803559 13f79535-47bb-0310-9956-ffa450edef68

----


---

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

Reply | Threaded
Open this post in threaded view
|

[GitHub] poi pull request #82: org.apache.poi.xwpf.converter.core.XWPFConverterExcept...

tuean
Github user asfgit closed the pull request at:

    https://github.com/apache/poi/pull/82


---

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