https://issues.apache.org/bugzilla/show_bug.cgi?id=50075

           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: [email protected]
        ReportedBy: [email protected]


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

java.lang.NullPointerException
    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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to