aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFinn Bock <bckfnn@apache.org>2004-01-29 13:32:04 +0000
committerFinn Bock <bckfnn@apache.org>2004-01-29 13:32:04 +0000
commit938811aa9177e819fe5f51f6e14476559e847b69 (patch)
treeb074cc1718af5da937bc1ce9ecbbcbdfdd43b6fb /src
parent76cbbf7f7c91955f3c441b29a4fac2b9b235f0c9 (diff)
downloadxmlgraphics-fop-938811aa9177e819fe5f51f6e14476559e847b69.tar.gz
xmlgraphics-fop-938811aa9177e819fe5f51f6e14476559e847b69.zip
Fix a NPE when the last shorthand was not detected.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197289 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/java/org/apache/fop/fo/Property.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/fo/Property.java b/src/java/org/apache/fop/fo/Property.java
index 41a017b75..c9f126f96 100644
--- a/src/java/org/apache/fop/fo/Property.java
+++ b/src/java/org/apache/fop/fo/Property.java
@@ -618,7 +618,7 @@ public class Property {
}
ListProperty listprop;
int n = shorthands.length;
- for (int i = 0; i < n; i++) {
+ for (int i = 0; i < n && shorthands[i] != null; i++) {
Property.Maker shorthand = shorthands[i];
listprop = (ListProperty)propertyList.getExplicit(shorthand.propId);
if (listprop != null) {