diff options
author | Jordan Naftolin <jordan@apache.org> | 2000-07-08 00:03:36 +0000 |
---|---|---|
committer | Jordan Naftolin <jordan@apache.org> | 2000-07-08 00:03:36 +0000 |
commit | 7aa5af025f430a379d4804d31c7ee101612b2a44 (patch) | |
tree | 4ddc1fead7d9929d39c537c13175087734473cca /src | |
parent | 743889bd0159d8f8343d30d46c0a0d6cb82e490f (diff) | |
download | xmlgraphics-fop-7aa5af025f430a379d4804d31c7ee101612b2a44.tar.gz xmlgraphics-fop-7aa5af025f430a379d4804d31c7ee101612b2a44.zip |
now throws exception if "ref-id" attribute not specified in page-number-citation
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193461 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/org/apache/fop/fo/flow/PageNumberCitation.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/org/apache/fop/fo/flow/PageNumberCitation.java b/src/org/apache/fop/fo/flow/PageNumberCitation.java index a5b8be56f..865a550b6 100644 --- a/src/org/apache/fop/fo/flow/PageNumberCitation.java +++ b/src/org/apache/fop/fo/flow/PageNumberCitation.java @@ -183,6 +183,11 @@ public class PageNumberCitation extends FObj } String refId = this.properties.get("ref-id").getString(); + + if(refId.equals("")) + { + throw new FOPException("page-number-citation must contain \"ref-id\""); + } IDReferences idReferences= area.getIDReferences(); String pageNumber=idReferences.getPageNumber(refId); |