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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: In Progress
    • Resolution: Unresolved
    • 1.7
    • None
    • SVGGraphics2D
    • None
    • 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

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

            Dates

              Created:
              Updated: