Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-811

drawImage(BufferedImage, BufferedImageOp, int, int) does not allow NULL as 2nd parameter

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: In Progress
    • Resolution: Unresolved
    • Affects Version/s: 1.7
    • Fix Version/s: None
    • Component/s: SVGGraphics2D
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: All

      Description

      I can't make use of the (faster) drawImage(BufferedImage, BufferedImageOp, int,
      int) call on the Graphics2D class, since, whenever I am rendering to SVG, this
      throws NullPointerExceptions every time.

      This is a simple fix, just change line 995 from:
      img = op.filter(img, null);

      to

      if (op!=null){
      img = op.filter(img, null);
      }

        Attachments

          Activity

            People

            • Assignee:
              batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
              Reporter:
              ronan.crowley@gmail.com Ronan Crowley
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: