aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop
diff options
context:
space:
mode:
authorAndreas L. Delmelle <adelmelle@apache.org>2011-01-07 21:22:40 +0000
committerAndreas L. Delmelle <adelmelle@apache.org>2011-01-07 21:22:40 +0000
commitdfa4c54704d8c10499557fd6dc2ab4312aa84a2c (patch)
treea1ef04132898d347d5259f0b84b884bacaeda784 /src/java/org/apache/fop
parent4de3abbc235c7e7d8efa0bc9bfd2bfa701e1767b (diff)
downloadxmlgraphics-fop-dfa4c54704d8c10499557fd6dc2ab4312aa84a2c.tar.gz
xmlgraphics-fop-dfa4c54704d8c10499557fd6dc2ab4312aa84a2c.zip
Bugzilla 50471: Avoid ArrayIndexOutOfBoundsException for codepoints without a linebreak class
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1056518 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop')
-rw-r--r--src/java/org/apache/fop/text/linebreak/LineBreakStatus.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/text/linebreak/LineBreakStatus.java b/src/java/org/apache/fop/text/linebreak/LineBreakStatus.java
index df5027373..157a480cc 100644
--- a/src/java/org/apache/fop/text/linebreak/LineBreakStatus.java
+++ b/src/java/org/apache/fop/text/linebreak/LineBreakStatus.java
@@ -87,6 +87,7 @@ public class LineBreakStatus {
/* Initial conversions */
switch (currentClass) {
+ case 0: // Unassigned codepoint: same treatment as AI
case LineBreakUtils.LINE_BREAK_PROPERTY_AI:
case LineBreakUtils.LINE_BREAK_PROPERTY_SG:
case LineBreakUtils.LINE_BREAK_PROPERTY_XX: