[
https://issues.apache.org/jira/browse/FOP-2277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13723657#comment-13723657
]
Leo commented on FOP-2277:
--------------------------
The problem is ht in the code is not initialized.
Case 1
if (token.equals("f")) {
System.out.print("Pattern: ");
token = in.readLine().trim();
System.out.println("Values: " + ht.findPattern(token));
case 2
else if (token.equals("h")) {
System.out.print("Word: ");
token = in.readLine().trim();
System.out.print("Hyphenation points: ");
System.out.println(ht.hyphenate(token, minCharCount,
minCharCount));
}
> java.lang.NullPointerException
> ------------------------------
>
> Key: FOP-2277
> URL: https://issues.apache.org/jira/browse/FOP-2277
> Project: Fop
> Issue Type: Bug
> Components: fo tree
> Affects Versions: 1.1
> Environment: Fedora 19, 64 bit
> Reporter: Leo
>
> NullPointException occurs
> java org.apache.fop.hyphenation.HyphenationTree
> input 'f' and then 'test'
> Exception in thread "main" java.lang.NullPointerException
> at
> org.apache.fop.hyphenation.HyphenationTree.main(HyphenationTree.java:646)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira