Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8061392

PrinterJob NPE when drawing translucent image with null user clip

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 6u10, 9
    • 9
    • client-libs
    • None
    • 2d
    • b38

    Backports

      Description

        If you call g2d.setClip(null) on the printer graphics then draw a transparent image
        you get the following exception :-
        java.lang.NullPointerException
                at sun.awt.windows.WPathGraphics.redrawRegion(WPathGraphics.java:1401)
                at sun.print.RasterPrinterJob.printPage(RasterPrinterJob.java:2143)
                at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1480)
                at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1323)
                at ARGB.main(ARGB.java:53)

        Attachments

          Issue Links

            Activity

              People

                prr Philip Race
                prr Philip Race
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: