Author: jeremias
Date: Mon Mar 17 04:06:10 2008
New Revision: 637838
URL: http://svn.apache.org/viewvc?rev=637838&view=rev
Log:
Throw a meaningful exception when the property name is wrong. Otherwise, there
will be an ArrayIndexOutOfBoundsException.
Modified:
xmlgraphics/fop/branches/Temp_ProcessingFeedback/src/java/org/apache/fop/fo/expr/InheritedPropFunction.java
Modified:
xmlgraphics/fop/branches/Temp_ProcessingFeedback/src/java/org/apache/fop/fo/expr/InheritedPropFunction.java
URL:
http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_ProcessingFeedback/src/java/org/apache/fop/fo/expr/InheritedPropFunction.java?rev=637838&r1=637837&r2=637838&view=diff
==============================================================================
---
xmlgraphics/fop/branches/Temp_ProcessingFeedback/src/java/org/apache/fop/fo/expr/InheritedPropFunction.java
(original)
+++
xmlgraphics/fop/branches/Temp_ProcessingFeedback/src/java/org/apache/fop/fo/expr/InheritedPropFunction.java
Mon Mar 17 04:06:10 2008
@@ -58,6 +58,11 @@
}
int propId = FOPropertyMapping.getPropertyId(propName);
+ if (propId < 0) {
+ throw new PropertyException(
+ "Unknown property name used with inherited-property-value
function: "
+ + propName);
+ }
return pInfo.getPropertyList().getInherited(propId);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]