You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Glenn Adams (JIRA)" <ji...@apache.org> on 2014/10/09 06:47:33 UTC

[jira] [Updated] (FOP-2415) NPE produced when Indic syllabizer class is unavailable.

     [ https://issues.apache.org/jira/browse/FOP-2415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Glenn Adams updated FOP-2415:
-----------------------------
    Attachment: tamil.fo.xml

Test file that produces NPE. Thanks to Anil Pinto for reporting this and creating test file.

> NPE produced when Indic syllabizer class is unavailable.
> --------------------------------------------------------
>
>                 Key: FOP-2415
>                 URL: https://issues.apache.org/jira/browse/FOP-2415
>             Project: Fop
>          Issue Type: Bug
>          Components: layout/unqualified
>    Affects Versions: 1.1, trunk
>            Reporter: Glenn Adams
>            Assignee: Glenn Adams
>         Attachments: tamil.fo.xml
>
>
> When formatting text from Indic script for which no syllabizer is available, an NPE is encountered as follows:
>      [java] java.lang.NullPointerException
>      [java]     at org.apache.fop.complexscripts.scripts.IndicScriptProcessor$Syllabizer.makeSyllabizer(IndicScriptProcessor.java:421)
>      [java]     at org.apache.fop.complexscripts.scripts.IndicScriptProcessor$Syllabizer.getSyllabizer(IndicScriptProcessor.java:408)
>      [java]     at org.apache.fop.complexscripts.scripts.IndicScriptProcessor.syllabize(IndicScriptProcessor.java:219)
>      [java]     at org.apache.fop.complexscripts.scripts.IndicScriptProcessor.substitute(IndicScriptProcessor.java:179)
>      [java]     at org.apache.fop.complexscripts.scripts.ScriptProcessor.substitute(ScriptProcessor.java:98)
>      [java]     at org.apache.fop.complexscripts.fonts.GlyphSubstitutionTable.substitute(GlyphSubstitutionTable.java:101)
>      [java]     at org.apache.fop.fonts.MultiByteFont.performSubstitution(MultiByteFont.java:495)
>      [java]     at org.apache.fop.fonts.LazyFont.performSubstitution(LazyFont.java:421)
>      [java]     at org.apache.fop.fonts.Font.performSubstitution(Font.java:423)
>      [java]     at org.apache.fop.fonts.GlyphMapping.processWordMapping(GlyphMapping.java:129)
>      [java]     at org.apache.fop.fonts.GlyphMapping.doGlyphMapping(GlyphMapping.java:89)
>      [java]     at org.apache.fop.layoutmgr.inline.TextLayoutManager.processWord(TextLayoutManager.java:935)
>      [java]     at org.apache.fop.layoutmgr.inline.TextLayoutManager.getNextKnuthElements(TextLayoutManager.java:853)
> ...



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)