poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 50075] New: NullPointerException at ListLevel.getNumberText() when numberText is null
Date Mon, 11 Oct 2010 19:09:36 GMT

           Summary: NullPointerException at ListLevel.getNumberText() when
                    numberText is null
           Product: POI
           Version: 3.7-dev
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HWPF
        AssignedTo: dev@poi.apache.org
        ReportedBy: a6537691@bofthew.com

When the document contains numbered paragraph with no number (strange, but
real), reading NumberText from that ListLevel fails with following exception:

    at java.lang.String.<init>(String.java:177)
    at org.apache.poi.hwpf.model.ListLevel.getNumberText(ListLevel.java:209)
    at dird.dokument.parser.ListUtils.getFormattedNumber(ListUtils.java:88)

In the constructor, when the numberTextLength is 0, it initializes _numberText
to null. I will upload a patch with a test case.

Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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

View raw message