diff options
author | Finn Bock <bckfnn@apache.org> | 2004-01-29 13:32:04 +0000 |
---|---|---|
committer | Finn Bock <bckfnn@apache.org> | 2004-01-29 13:32:04 +0000 |
commit | 938811aa9177e819fe5f51f6e14476559e847b69 (patch) | |
tree | b074cc1718af5da937bc1ce9ecbbcbdfdd43b6fb /src | |
parent | 76cbbf7f7c91955f3c441b29a4fac2b9b235f0c9 (diff) | |
download | xmlgraphics-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.java | 2 |
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) { |