]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
now throws exception if "ref-id" attribute not specified in page-number-citation
authorJordan Naftolin <jordan@apache.org>
Sat, 8 Jul 2000 00:03:36 +0000 (00:03 +0000)
committerJordan Naftolin <jordan@apache.org>
Sat, 8 Jul 2000 00:03:36 +0000 (00:03 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193461 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/fo/flow/PageNumberCitation.java

index a5b8be56f474ff525fe3ecb73cda1cc686260bf1..865a550b61fbdadf186d70bbe3cee5a77526bee3 100644 (file)
@@ -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);