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

PrinterJob NPE when drawing translucent image with null user clip

XMLWordPrintable

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

        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)

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

                Created:
                Updated:
                Resolved: