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

--- Comment #20 from Yegor Kozlov <ye...@dinom.ru> 2011-06-26 10:27:08 UTC ---
It still fails on Bug33519.doc, but with a different exception:

java.lang.IllegalArgumentException: The end (1077) must not be before the start
(1985)
    at org.apache.poi.hwpf.usermodel.Range.sanityCheckStartEnd(Range.java:243)
    at org.apache.poi.hwpf.usermodel.Range.<init>(Range.java:176)
    at org.apache.poi.hwpf.usermodel.CharacterRun.<init>(CharacterRun.java:97)
    at org.apache.poi.hwpf.usermodel.Range.getCharacterRun(Range.java:802)
    at
org.apache.poi.hwpf.extractor.WordToFoExtractor.processCharacters(WordToFoExtractor.java:243)
    at
org.apache.poi.hwpf.extractor.WordToFoExtractor.processParagraph(WordToFoExtractor.java:529)
    at
org.apache.poi.hwpf.extractor.WordToFoExtractor.processSectionParagraphes(WordToFoExtractor.java:608)
    at
org.apache.poi.hwpf.extractor.WordToFoExtractor.processSection(WordToFoExtractor.java:556)
    at
org.apache.poi.hwpf.extractor.WordToFoExtractor.processDocument(WordToFoExtractor.java:341)
    at
org.apache.poi.hwpf.extractor.WordToFoExtractor.process(WordToFoExtractor.java:167)
    at
org.apache.poi.hwpf.extractor.WordToFoExtractor.main(WordToFoExtractor.java:142)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)


Shall I commit this patch or wait for the next one?

Yegor

(In reply to comment #19)
> Created attachment 27205 [details]
> Workaround for NPE in Bug 33519

-- 
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-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to