bckfnn 2004/01/29 05:32:04
Modified: src/java/org/apache/fop/fo Property.java
Log:
Fix a NPE when the last shorthand was not detected.
Revision Changes Path
1.19 +1 -1 xml-fop/src/java/org/apache/fop/fo/Property.java
Index: Property.java
===================================================================
RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/Property.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- Property.java 25 Jan 2004 22:34:49 -0000 1.18
+++ Property.java 29 Jan 2004 13:32:04 -0000 1.19
@@ -618,7 +618,7 @@
}
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) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]