jeremias    2003/02/11 06:04:35

  Modified:    src/org/apache/fop/render Tag: fop-0_20_2-maintain
                        AbstractRenderer.java
  Log:
  Fixes a cause for a NPE. Doesn't fix the obvious bug, though.
  
  Bug can be reproduced with the FO file in:
  http://marc.theaimsgroup.com/?l=fop-user&m=104497021323551&w=2
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.4.2.8   +6 -3      xml-fop/src/org/apache/fop/render/AbstractRenderer.java
  
  Index: AbstractRenderer.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/render/AbstractRenderer.java,v
  retrieving revision 1.4.2.7
  retrieving revision 1.4.2.8
  diff -u -r1.4.2.7 -r1.4.2.8
  --- AbstractRenderer.java     11 Jan 2003 18:43:04 -0000      1.4.2.7
  +++ AbstractRenderer.java     11 Feb 2003 14:04:35 -0000      1.4.2.8
  @@ -451,9 +451,12 @@
        * @param area area to render
        */
       public void renderLineArea(LineArea area) {
  -        if (area.pendingWidth>0) {
  +        if (area.pendingWidth > 0) {
  +             final String pageNumber = (area.getPage() != null 
  +                             ? area.getPage().getFormattedNumber()
  +                             : "<unknown>");
               log.error("Areas pending, text probably lost. Check Page " +
  -                      area.getPage().getFormattedNumber() +
  +                      pageNumber +
                         " and following page.");
           }
           int rx = this.currentAreaContainerXPosition + area.getStartIndent();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to