summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/org/apache/fop/fo/flow/PageNumberCitation.java5
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);