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

PrinterJob NPE when drawing translucent image with null user clip

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 6u10, 9
    • Fix Version/s: 9
    • Component/s: client-libs
    • Labels:
      None
    • Subcomponent:
      2d
    • Resolved In Build:
      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

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

                  Dates

                  Created:
                  Updated:
                  Resolved: