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

java/awt/print/PrinterJob/Cancel/PrinterJobCancel.java fails with java.lang.NullPointerException: Null component provided to invokeLater

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • tbd
    • 17, 20, 22, 23, 24
    • client-libs
    • 2d
    • x86
    • os_x

      java/awt/print/PrinterJob/Cancel/PrinterJobCancel.java fails with the following exception

      2024-10-27 17:18:31.567 java[19354:4079463] Java Exception
      2024-10-27 17:18:31.570 java[19354:4079463] (
      0 CoreFoundation 0x00007ff80eee5dc6 __exceptionPreprocess + 242
      1 libobjc.A.dylib 0x00007ff80e9d59dd objc_exception_throw + 48
      2 CoreFoundation 0x00007ff80eee5c66 +[NSException raise:format:] + 214
      3 libawt_lwawt.dylib 0x000000012b7a7028 -[PrinterView complete:] + 552
      4 libawt_lwawt.dylib 0x000000012b7a52bf -[PrintModel safePrintLoop:withEnv:] + 175
      5 libawt_lwawt.dylib 0x000000012b747644 Java_sun_lwawt_macosx_CPrinterJob_printLoop + 3892
      6 ??? 0x0000000118c50d7c 0x0 + 4710534524
      )
      java.lang.NullPointerException: Null component provided to invokeLater
      at java.base/java.util.Objects.requireNonNull(Objects.java:246)
      at java.desktop/sun.lwawt.macosx.LWCToolkit.invokeLater(LWCToolkit.java:747)
      at java.desktop/sun.lwawt.macosx.CPrinterJob.cancelCheck(CPrinterJob.java:755)
      at java.desktop/sun.lwawt.macosx.CPrinterJob.printLoop(Native Method)
      at java.desktop/sun.lwawt.macosx.CPrinterJob.print(CPrinterJob.java:373)
      at java.desktop/sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1497)
      at PrinterJobCancel.run(PrinterJobCancel.java:53)
      DONE PRINTING
      Didn't get the expected PrintAbortException

            psadhukhan Prasanta Sadhukhan
            landrews Lawrence Andrews
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: